- 博客(9)
- 收藏
- 关注
原创 usbmouse的注释
#include #include #include #include #include #include /* for apple IDs */#ifdef CONFIG_USB_HID_MODULE#include "../hid-ids.h"#endif/* * Version Information */#define DRIVER_VERSION "v1.6
2017-09-13 15:05:35 710
原创 kmalloc和vmalloc的区别和联系
------------------------------------------------------------------------------------------------------------------void *kmalloc(size_t size, unsigned int flags);参数1:要分配空间的大小 参数2:分配flags的取值:GFP_K
2017-08-25 19:35:13 1417
原创 set_irq_type函数解析
/* * These correspond to the IORESOURCE_IRQ_* defines in * linux/ioport.h to select the interrupt line behaviour. When * requesting an interrupt without specifying a IRQF_TRIGGER, the * setting s
2017-08-24 18:47:16 1585
原创 unregister_chrdev_region和__unregister_chrdev_region和cdev_del
/** * unregister_chrdev_region() - return a range of device numbers * @from: the first in the range of numbers to unregister * @count: the number of device numbers to unregister * * This function
2017-08-24 09:37:12 2049
原创 cdev_init和cdev_add
/** * cdev_init() - initialize a cdev structure * @cdev: the structure to initialize * @fops: the file_operations for this device * * Initializes @cdev, remembering @fops, making it ready to add
2017-08-24 00:01:47 2454
原创 alloc_chrdev_region解析
/** * alloc_chrdev_region() - register a range of char device numbers * @dev: output parameter for first assigned number * @baseminor: first of the requested range of minor numbers * @count: the n
2017-08-23 23:31:59 4640
原创 __register_chrdev_region函数解析
/* * Register a single major with a specified minor range. * * If major == 0 this functions will dynamically allocate a major and return * its number. * * If major > 0 this function will attempt
2017-08-23 21:15:33 1076
原创 register_chrdev_region函数解析
int register_chrdev_region(dev_t from, unsigned count, const char *name);此函数主要是进行手动分配设备号参数1:from为设备号,包含已经存在的主设备号和次设备号参数2:count为要申请设备号的个数参数3:name为驱动的名称/** * register_chrdev_region() - regi
2017-08-23 20:54:52 1393 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人