
Linux设备驱动
John Madieu的《Linux Device Drivers Development》学习笔记
GayKoo
这个作者很懒,什么都没留下…
展开
-
《Linux Device Drivers Development》——Chap 22 Network Interface Card Drivers
Driver data structuresThe socket buffer structureSocket buffer allocationNetwork interface structureThe device methodsOpening and closingPacket handlingPacket receptionPacket transmissionDriver exampleStatus原创 2021-12-11 14:19:10 · 796 阅读 · 0 评论 -
《Linux Device Drivers Development》——Chap 21 Framebuffer Drivers
Driver data structuresDevice methodsDriver methodsDetailed fb_opsChecking informationSet controller’s parametersScreen blankingAccelerated methodsPutting it all togetherFramebuffer from user space原创 2021-12-10 11:11:08 · 772 阅读 · 0 评论 -
《Linux Device Drivers Development》——Chap 20 Regulator Framework
PMIC/producer driver interfaceDriver data structuresDescription structureConstraints structureinit data structureFeeding init data into the DTConfiguration structureDevice operation structureDriver methodsProbe functionRemove.原创 2021-12-10 10:09:16 · 932 阅读 · 0 评论 -
《Linux Device Drivers Development》——Chap 19 PWM Drivers
PWM controller driverDriver examplePWM controller bindingPWM consumer interfacePWM clients bindingUsing PWMs with the sysfs interface原创 2021-12-08 11:13:19 · 657 阅读 · 0 评论 -
《Linux Device Drivers Development》——Chap 18 RTC Drivers
原创 2021-12-06 11:45:08 · 656 阅读 · 0 评论 -
《Linux Device Drivers Development》——Chap 17 Input Devices Drivers
Allocating and registering an input devicePolled input device sub-classGenerating and reporting an input event原创 2021-12-05 14:29:35 · 999 阅读 · 0 评论 -
《Linux Device Drivers Development》——Chap 16 Advanced IRQ Management
原创 2021-12-04 11:28:35 · 720 阅读 · 0 评论 -
《Linux Device Drivers Development》——Chap 15 GPIO Controller Drivers – gpio_chip
原创 2021-12-02 09:53:49 · 702 阅读 · 0 评论 -
《Linux Device Drivers Development》——Chap 14 Pin Control and GPIO Subsystem
Pin control subsystemPinctrl and the device treeThe GPIO subsystemThe descriptor-based GPIO interfaceGPIO descriptor mapping - the device treeAllocating and using GPIOPutting it all togetherThe GPIO interface and the de原创 2021-11-30 11:01:43 · 199 阅读 · 0 评论 -
《Linux Device Drivers Development》——Chap 13 Linux Device Model
LDM data structuresThe busBus registrationDevice driverDevice driver registrationDeviceDevice registrationDeep inside LDMkobject structurekobj_typeksetsAttributeAttributes groupDevice model and sysfsSys原创 2021-11-27 11:55:50 · 598 阅读 · 0 评论 -
《Linux Device Drivers Development》——Chap 12 DMA – Direct Memory Access
DMA mappingsCoherent mappingStreaming DMA mappingSingle buffer mappingScatter/gather mapping原创 2021-11-26 23:02:56 · 714 阅读 · 0 评论 -
《Linux Device Drivers Development》——Chap 11 Kernel Memory Management
System memory layout - kernel space and user spaceKernel addresses – concept of low and high memoryLow memoryHigh memoryUser space addressesVirtual Memory Area (VMA)Address translation and MMUPage look up and TLBHow do原创 2021-11-24 22:13:54 · 197 阅读 · 0 评论 -
《Linux Device Drivers Development》——Chap 10 IIO Framework
IIO data structuresiio_dev structureiio_info structureIIO channelsChannel attribute naming conventionsDistinguishing channelsPutting it all together原创 2021-11-22 21:02:34 · 664 阅读 · 0 评论 -
《Linux Device Drivers Development》——Chap 9 Regmap API – A Register Map Abstraction
regmap_config structure一红线处应为"cacheable_table"regmap initializationSPI initializationI2C initializationDevice access functionsregmap_update_bits function要对哪一位修改,“mask"中对应位要设为"1”,"val"中对应位修改值。...原创 2021-11-17 21:20:54 · 136 阅读 · 0 评论 -
《Linux Device Drivers Development》——Chap 8 SPI Device Driver
The driver architectureThe device structureSPI driver structureThe probe function原创 2021-11-15 21:37:59 · 572 阅读 · 0 评论 -
《Linux Device Drivers Development》——Chap 7 I2C Client Driver
The driver architectureThe i2c_driver structureThe probe() functionThe remove() functionDriver initialization and registrationDriver and device provisioningAccessing the clientPlain I2C communication原创 2021-11-09 20:00:38 · 577 阅读 · 0 评论 -
《Linux Device Drivers Development》——Chap 6 The Concept of Device Tree
目录Device tree mechanismNaming conventionAliases, labels, and phandleRepresenting and addressing devicesDevice tree mechanismNaming conventionAliases, labels, and phandleRepresenting and addressing devices原创 2021-11-02 15:08:51 · 122 阅读 · 0 评论 -
《Linux Device Drivers Development》——Chap 5 Platform Device Drivers
目录Platform Driver二级目录三级目录Platform Driver二级目录三级目录原创 2021-10-19 12:26:30 · 201 阅读 · 0 评论 -
《Linux Device Drivers Development》——Chap 4 Character Device Drivers
hhjhj原创 2021-10-14 21:47:22 · 227 阅读 · 0 评论 -
《Linux Device Drivers Development》——Chap 3 Kernel Facilities and Helper Functions
目录container_of()Linked Lists创建和初始化Linked List创建一个list节点添加删除一个list节点遍历Linked Listcontainer_of()用于获取某指针所属的结构体。Linked ListsLinked List是基于双向链表的。后续内容基于下列数据结构。创建和初始化Linked List仅介绍动态方法。创建一个list节点添加stack式Linked ListQueue式Linked List删除一个list节点原创 2021-10-12 22:21:45 · 323 阅读 · 0 评论 -
《Linux Device Drivers Development》——Chap 2 Device Driver Basis
目录module_init()和module_exit()EXPORT_SYMBOL()module_param()和MODULE_PARM_DESC()module_init()和module_exit()static ini __init function_init(void) //__init 必须要有{ //初始化代码}module_init(function_init); //注册函数static __exit function_exit(void) //__exit 必须要有{原创 2021-09-27 13:40:36 · 268 阅读 · 0 评论