`
koliy
  • 浏览: 146923 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

linux编译内核关于semaphore.h头文件的问题

阅读更多
编译wifi的驱动,有时候会提示以下错误信息:
error: field 'sem_req' has incomplete type
error: field 'sem_async' has incomplete type
error: implicit declaration of function 'up'
error: implicit declaration of function 'down_interruptible'
。。。。

原因是linux内核升级之后,关于semaphore的头文件变了。修正这个错误很简单,只要在报错的文件中加入正确的头文件
#include <linux/semaphore.h>
不是 <asm/semaphore.h>了。
分享到:
评论

相关推荐

    pthread.h sched.h semaphore.h 三个头文件

    windows下安装cygwin,编译darknet时缺少的三个头文件,下载后复制到darknet下include文件夹内即可

    sched的头文件内容

    /* * include/linux/schedh ...#include &lt;asm/semaphore.h&gt; #include &lt;asm/page.h&gt; #include &lt;asm/ptrace.h&gt; #include &lt;asm/mmu.h&gt; #include &lt;linux/smp.h&gt; #include &lt;linux/tty.h&gt; #include &lt;linux/sem.h&gt;

    apple越狱备份数据

    at com.semaphore.jna.md.MDLibrary.&lt;clinit&gt;(MDLibrary.java:39) at com.semaphore.jna.idevice.win.WinDeviceLibrary.addNotificationHandler(WinDeviceLibrary.java:61) at ...

    OS-semaphore.rar_Semaphore_semaphore. windows

    在windows系统下的os平台中,各个任务间是通过信号量来同步共同资源的,本文就信号量机制进行了详细的讲解,

    Ansible-semaphore.zip

    Ansible-semaphore.zip,可供选择的开源towerrelease,ansible是一个简单而强大的自动化引擎。它用于帮助配置管理、应用程序部署和任务自动化。

    开源项目-vasilmkd-semaphore.zip

    开源项目-vasilmkd-semaphore.zip,A lockless semaphore package using atomic instructions, feedback appreciated

    04_FreeRTOS_Counting_Semaphore.rar

    本文将介绍: a. 使用CMSIS API ,介绍FreeRTOS中计数信号量 b. 不使用CMSIS API,直接使用FreeRTOS函数 1. 简介 计数信号量可用于控制对资源的访问。要获得对资源的控制,任务必须首先获得信号量。...

    csapp_深入理解计算机系统_相关文件_csapp.h_csapp.c

    #include &lt;semaphore.h&gt; #include &lt;sys/socket.h&gt; #include &lt;netdb.h&gt; #include &lt;netinet/in.h&gt; #include &lt;arpa/inet.h&gt; /* Simplifies calls to bind(), connect(), and accept() */ /* $begin sockaddrdef */ ...

    Unity Profiler分析器

    从网上查的资料,然后整理的关于unity中 Profiler分析器的一些解释,很简单,文档就是解释一下,用来解释界面的,无甚大用处,慎下,慎下

    semaphore-nodejs:在 node.js 中使用 semaphore.co API 的小型客户端库

    semaphore-nodejs 在 node.js 中使用 API 的小型客户端库 ##用法 在你的项目中安装 npm &gt; npm install semaphore-sms 用法示例: ...semaphore.send_sms方法用于向 1 到 20 个收件人电话号码发送 SM

    JAVA Semaphore.docx

    在JAVA里面,我的理解是信号计数的作用,比如我想设置只能允许500个线程访问Web...这样就实现了控制的作用,当然这个功能咱们自己通过锁的机制可以自己完成,不过使用Semaphore比较简单、方便,这也是它产生的原因。

    cam_semaphore.rar_Reason

    Implement semaphore with mutex and conditional variable. Reason being, POSIX semaphore on Android are not used or well tested.

    深入浅出java Semaphore.pdf

    深入浅出java Semaphore

    pc_semaphore.zip_pc_semaphore

    线程间共享数据 读者写者问题 makefile

    Linux中的semaphore和rwsem .pdf

    Linux中的semaphore和rwsem .pdf

    CountDownLatch、CyclicBarrier、Semaphore.md

    java 高并发应用场景

    03_FreeRTOS_Bin_Semaphore.rar

    信号量基本上用于将任务与系统中的其他事件同步。在FreeRTOS中,信号量是基于队列机制实现的。FreeRTOS中有4种信号量: - 二进制信号量 - 计数信号量 - 互斥信号量 - 递归信号量 本文介绍: 二进制信号量的使用方法

    STM32F103-AzureRTOS-2-semaphore.7z

    STM32F103+Azure threadx RTOS 信号量的使用 此程序包含Azure threadx RTOS代码在STM32F103芯片的移植,采用Keil5搭建工程。简单实现两个任务,一个任务发送信号,一个任务读取信号。

    生产者消费者程序设计.doc

    实验代码 /*product.c*/ #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &lt;unistd.h&gt; #include &lt;pthread.h&gt; #include &lt;errno.h&gt; #include &lt;sys/ipc.h&gt; #include &lt;semaphore.h&gt; #include &lt;fcntl.h&gt; #define FIFO ...

Global site tag (gtag.js) - Google Analytics