register_chrdev函数
来源:互联网 发布:windows tree命令详解 编辑:程序博客网 时间:2024/06/07 17:19
开学了,温习一下~
Name
register_chrdev — Register a major number for character devices.
Synopsis
int register_chrdev (
unsigned int major, const char * name, const struct file_operations * fops)
;Arguments
major
major device number or 0 for dynamic allocation
name
name of this range of devices
fops
file operations associated with this devices
Description
If major
== 0 this functions will dynamically allocate a major and return its number.
If major
> 0 this function will attempt to reserve a device with the given major number and will return zero on success.
Returns a -ve errno on failure.
The name of this device has nothing to do with the name of the device in /dev. It only helps to keep track of the different owners of devices. If your module name has only one type of devices it's ok to use e.g. the name of the module here.
This function registers a range of 256 minor numbers. The first minor number is 0.
- register_chrdev函数
- register_chrdev函数
- 26 register_chrdev函数
- register_chrdev
- Linux字符设备注册函数 register_chrdev详解
- 字符设备 register_chrdev_region()、alloc_chrdev_region() 和 register_chrdev()函数的区别
- 字符设备 register_chrdev_region()、alloc_chrdev_region() 和 register_chrdev()函数的区别
- register_chrdev,class_create()
- register_chrdev & devfs_register_chrdev
- register_chrdev & devfs_register_chrdev
- register_chrdev,class_create()
- register_chrdev & unregister_chrdev
- register_chrdev,class_create()
- register_chrdev & unregister_chrdev
- register_chrdev()与register_chrdev_region()
- misc_register、 register_chrdev 的区别
- class_create()和如果register_chrdev
- register_chrdev()与register_chrdev_region()
- JavaScript验证汉字
- linux编译安装及配置Nginx(包含pcre), 日志定时切割
- 动态取得当前页面的高度(适应IE6,7,8,firefox,chrome等)
- perl SIG 信号处理
- 转载:JAVA服务器端Socket线程池
- register_chrdev函数
- python有道翻译
- java G1垃圾收集器
- 修改hosts显示自定义域名
- 调用删除方法UITableView deleteRowsAtIndexPaths的时候就挂掉
- 当前各种接入网技术(Access Network technologies)
- 【个人开发者】我的应用开发心得
- 找不到 /lib64/libc.so.6库文件的解决方法
- 用户态和内核态的概念区别