projects
/
cascardo
/
kernel
/
notes
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Import course "ementa" as a content index.
[cascardo/kernel/notes/.git]
/
04.char
/
3.cdev
/
text
1
#include <linux/cdev.h>
2
3
struct cdev
4
cdev_init(cdev, fops)
5
cdev * cdev_alloc()
6
cdev->fops = fops
7
cdev_add(cdev, dev_t, unsigned n) (n is 1 most of the time)
8
cdev_del(cdev)
9
10
11
older way!?!
12
register_chrdev/unregister_chrdev
13
propose new way!?!