
linux
OString2024
个人公众号:OString2024
zhihu:Ostring
展开
-
Linux Driver 和Device的匹配过程
platform_driver_register() ->driver_register() ->bus_add_driver() ->driver_attach() ->bus_for_each_dev() 对每个挂在虚拟的platform bus的设备作 __driver_attach() ->driver_probe_device() ->drv->...原创 2019-11-05 15:05:28 · 1294 阅读 · 0 评论 -
Linux Driver
设备分类 字符设备 块设备 网络设备 驱动在kernel中的位置 GNU C vs ANSI C typeof Kernel modules lsmod 读取/proc/modules 下的所有文件信息 127|root@astar-evb30:/sdcard # lsmod spi_aichip 7292 0 - Live 0x00000000 aispeech...原创 2018-10-05 09:03:31 · 1826 阅读 · 0 评论 -
Linux 内核设计与实现(linux kernel design and realization)
Author: Robert Love command: ps-el :查看系统中的进程列表 ps -eo state,uid, pid, ppid, rtprio, time, comm kernel introduction processor state: user mode, process state kernel mode, process state kernel mode...原创 2018-10-05 09:04:03 · 398 阅读 · 0 评论 -
linux设备模型: kobject, kset
kobject linux3.4 struct kobject { const char *name; struct list_head entry; //used for mount to kset list struct kobject *parent; struct kset *kset; struct kobj_type *ktype; //指...原创 2019-09-19 10:11:58 · 121 阅读 · 0 评论