首页 > 系统相关 >linux 驱动 --- unlocked_ioctl 与 compat_ioctl

linux 驱动 --- unlocked_ioctl 与 compat_ioctl

时间:2024-01-14 17:00:48浏览次数:29  
标签:compat kernel unlocked 32 ioctl 64

1、compat_ioctl:支持64bit的driver必须要实现的ioctl,当有32bit的userspace application call 64bit kernel的IOCTL的时候,这个callback会被调用到。如果没有实现compat_ioctl,那么32位的用户程序在64位的kernel上执行ioctl时会返回错误:Not a typewriter
2、如果是64位的用户程序运行在64位的kernel上,调用的是unlocked_ioctl,如果是32位的APP运行在32位的kernel上,调用的也是unlocked_ioctl

使用file命令查看一个应用程序是32bit还是64bit

:/vendor/bin # file mif_test
mif_test: ELF shared object, 32-bit LSB arm, dynamic (/system/bin/linker), for Android 28, BuildID=bb680924146d73e5b07df2715d1a0efc, stripped

 

标签:compat,kernel,unlocked,32,ioctl,64
From: https://www.cnblogs.com/god-of-death/p/17963896

相关文章

  • this is incompatible with sql_mode=only_full_group_by
    MySQ:mysql-5.7.30-linux-glibc2.12-x86_64生未知异常.org.springframework.jdbc.BadSqlGrammarException:###Errorqueryingdatabase.Cause:java.sql.SQLSyntaxErrorException:Expression#21ofSELECTlistisnotinGROUPBYclauseandcontainsnonaggregatedcolum......
  • 报错Module was compiled with an incompatible version of Kotlin. The binary versi
    报错ModulewascompiledwithanincompatibleversionofKotlin.Thebinaryversionofitsmetadatais1.8.0,expectedversionis1.6.0.报错原因Kotlin的编译链版本不对ModulewascompiledwithanincompatibleversionofKotlin.Thebinaryversionofitsmet......
  • QCN9024|Wallys DR9074-TRIBAND Now Supported by ATH11K for Enhanced Linux Compati
    QCN9024|WallysDR9074-TRIBANDNowSupportedbyATH11KforEnhancedLinuxCompatibility!WallysisthrilledtoannouncethatourDR9074-TRIBANDisnowsupportedbyATH11K.ThisnotonlyextendsitsusabilitybeyondQualcommplatformsbutopensdoorsforint......
  • istioctl 部署 istio
    istio架构:1、下载istio安装包[root@master1~]#curl-Lhttps://istio.io/downloadIstio|ISTIO_VERSION=1.8.2TARGET_ARCH=x86_64sh-2、移动istioctl到/usr/bin目录下[root@master1~]#cpistio-1.8.2/bin/istioctl/usr/bin3、查看istio可用配置列表[root@master1......
  • ICEE-Microchip-MPLAB X IDE-MCC Plugin + MCC Core + MHC(MCC Harmony Core) versio
    https://microchip.my.site.com/s/article/MPLAB-X-MCC-plugin--MCC-Core-and-MCC-Harmony-Core-versions-and-compatibilityAug17,2023•KnowledgerticleNumber:000014642Title:MPLABXMCCplugin,MCCCoreandMCCHarmonyCoreversionsandcompatibilityArticl......
  • ioctl基于接口 【ChatGPT】
    https://www.kernel.org/doc/html/v6.6/driver-api/ioctl.htmlioctl基于接口ioctl()是应用程序与设备驱动程序进行接口交互的最常见方式。它灵活且易于通过添加新命令进行扩展,并且可以通过字符设备、块设备以及套接字和其他特殊文件描述符进行传递。然而,很容易错误地定义ioct......
  • mysql 报错which is not functionally dependent on columns in GROUP BY clause; thi
    Expression#2ofSELECTlistisnotinGROUPBYclauseandcontainsnonaggregatedcolumn'd.Id'whichisnotfunctionallydependentoncolumnsinGROUPBYclause;thisisincompatiblewithsql_mode=only_full_group_bywindow系统中,服务中找到mysql服务"......
  • 解决 "VMware Workstation and Device/Credential Guard are not compatible" error i
    https://kb.vmware.com/s/article/2146361 https://communities.vmware.com/t5/VMware-Workstation-Pro/Virtualized-Intel-VT-x-EPT-is-not-supported-on-this-platform/td-p/2875203 https://communities.vmware.com/t5/VMware-Workstation-Player/Virtualized-Intel-VT......
  • QCN9074 QCN9024|DR9074E Compatible with DR4019 Platform OpenWrt
    ExcitingNews:WallysWiFi6Card#DR9074ENowCompatiblewithDR4019Platform(WiFi5)andOpenWrtDriver-AGame-ChangerinWirelessTech!Wearethrilledtobringyousomeexcitingnews!OurWallysWiFi6DualBandCard#DR9074Ehasjusttakenagiant......
  • Syntax Error: Error: Node Sass version 8.0.0 is incompatible with ^4.0.0.
    依赖关系如图: 如果报如题这个错误,并且按照上面node-sass官网的依赖关系依赖对了node版本还不行,那么,请删除node-sassnpmuninstallnode-sass然后执行npmisass--save-dev然后运行项目,如果出现类似图片中的错误时,别慌,把所有的/deep/更换成::v-deepSyntaxError:Sa......