Linux内核开发常用函数及其头文件是什么
发表于:2025-02-21 作者:千家信息网编辑
千家信息网最后更新 2025年02月21日,Linux内核开发常用函数及其头文件是什么,很多新手对此不是很清楚,为了帮助大家解决这个难题,下面小编将为大家详细讲解,有这方面需求的人可以来学习下,希望你能有所收获。一、protocol//prot
千家信息网最后更新 2025年02月21日Linux内核开发常用函数及其头文件是什么
Linux内核开发常用函数及其头文件是什么,很多新手对此不是很清楚,为了帮助大家解决这个难题,下面小编将为大家详细讲解,有这方面需求的人可以来学习下,希望你能有所收获。
一、protocol
//protocol//-----include/linux/in.hIPPROTO_UDPINADDR_ANYstruct sockaddr_in//-----include/linux/ip.h struct iphdrip_hdr()//-----include/linux/udp.h struct udphdrudp_hdr()//-----include/linux/tcp.h struct tcphdrtcp_hdr()
二、sk_buff
//sk_buff//-----include/linux/skbuff.hstruct sk_buff
三、memory
//memory//-----include/linux/slab_def.hkmalloc()//-----include/linux/slab.hkfree()ksize()//-----include/linux/gfp.hGFP_KERNEL
四、string
//string//-----include/linux/string.hstrcmp()strim()strrchr()strsep()strpbrk()memset()memcpy()memmove()
五、byteorder
//byteorder//-----include/linux/byteorder/generic.hntohs()__be16_to_cpu()
六、output
//output//-----include/linux/kernel.hprintk()//-----lib/vsprintf.c sprintf()snprintf()
七、process
//process//-----include/linux/sched.hstruct task_structTASK_RUNNINGset_task_state()set_current_state()//-----include/asm-generic/current.hcurrent//-----include/linux/thread_info.h set_need_resched()clear_need_resched()//-----arch/x86/include/asm/thread_info.h struct thread_info
八、thread
//thread//-----include/linux/kthread.hkthread_create()kthread_stop() //-----include/linux/sched.hwake_up_process
九、wait queue
//wait queue//-----include/linux/wait.hwait_queue_head_tinit_waitqueue_head()wake_up()wait_event()
十、lock
//lock//-----include/asm-generic/atomic.hatomic_inc()//-----include/linux/spinlock.h spin_lock()spin_lock_bh()//-----include/linux/rcupdate.h rcu_read_lock()synchronize_rcu()
十一、time
//time//-----include/linux/raid/pq.hHZ/jiffies//-----include/linux/time.h struct timespecget_seconds()current_kernel_time()mktime()//-----include/linux/timer.hstruct timer_listinit_timer()mod_timer()add_timer()del_timer()//-----include/linux/jiffies.htime_before()time_after_eq()jiffies_to_msecs()
十二、cpu
//cpu//-----include/linux/cpumask.hnum_online_cpus()for_each_possible_cpu()//-----include/linux/smp.hsmp_processor_id()get_cpu()//-----include/linux/percpu.hget_cpu_var()//-----include/asm-generic/percpu.h per_cpu()__get_cpu_var()// DEFINE_PER_CPU
十三、proc file
//proc file//-----include/linux/sysctl.hstruct ctl_tablestruct ctl_table_headerregister_sysctl_table()register_sysctl_table()proc_dointvec()proc_doulongvec_minmax()proc_dostring()
十四、uio
//uio//-----include/linux/platform_device.hstruct platform_deviceplatform_device_register_simple()platform_device_unregister()//-----include/linux/device.hstruct device_driverdriver_register()driver_unregister()//-----include/linux/uio_driver.hstruct uio_infoUIO_IRQ_NONEuio_register_device()uio_unregister_device()
十五、random
//random//-----include/linux/random.hrandom32()
十六、device
//device//-----include/linux/netdevice.hstruct net_device//-----include/linux/pci.hstruct pci_driver//-----include/linux/mod_devicetable.hstruct pci_device_id
看完上述内容是否对您有帮助呢?如果还想对相关知识有进一步的了解或阅读更多相关文章,请关注行业资讯频道,感谢您对的支持。
帮助
内核
函数
常用
文件
开发
清楚
内容
对此
文章
新手
更多
知识
行业
资讯
资讯频道
难题
需求
频道
进一
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
定位 数据库
广州诺特软件开发福利怎样
金山信息网络安全
数据库字段如何修改
更新数据库表记录用什么命令
网络安全可以做多久
苏州果盘网络技术有限公司
二维码扫码软件开发
中通建四局是软件开发
食品经营监管 大数据库
软件开发师需要什么文化
国家进入重点监测数据库
数据库应用技术项目教程
在线考试系统数据库的连接
中山无限软件开发定做价格
信息系统软件开发的请示报告
四级报名链接不上服务器
南昌定制软件开发价格
java服务器获取本地电脑ip
互联网金融科技板块
苏州app软件开发平台有哪些
软件开发领域中的软件模型
智能家居软件开发加盟
数据库flabspath
pbe服务器有改名卡吗
服务器系统磁盘管理
山西蓝松网络技术有限公司
学校名录数据库
中央电视台数据中心服务器啥样子
服务器加固安全 是什么意思