device_ids
, major
,
minor
, umajor
,
uminor
—
?ǥХ??? ID ?η?
<sys/types.h>
<sys/systm.h>
int major
(struct
cdev *dev) int
minor
(struct cdev *dev)
int umajor
(dev_t
id) int
uminor
(dev_t id)
device_ids
?ե??ߥ??δؿ??ϡ??????ǥХ????? ID
?Ǥ??? id
?ޤ??ϥǥХ?????¤?ΤؤΥݥ??Ǥ???
dev
???Ȥꡢ?ᤵ?줿??㡼?ޤ??ϥޥ??ʥǥХ???
ID ???????ͤ??֤??ޤ???
?ºݤΥ?㡼?????ӥޥ??ʥǥХ???
ID ?ϥ????ǥХ??? ID ????
?ޥ??????줿?ͤǤ???
?ºݤΥ?㡼?????ӥޥ??? ID
?????ꤹ?뤿???˻??Ѥ??????????ξܺ٤ϡ?
kern_conf.c
?μºݤΥ??????Ȥ??Ʋ???????
0 ?????礭?????? NUMCDEVSW
???꾮?????????ͤǤ???
???ΥǥХ?????̵???Ǥ????????ˤϡ?
major
() ?????? minor
() ??
NODEV
???֤??ޤ???
???Υޥ˥奢???ڡ????? Chad
David ⟨davidc@acns.ab.ca⟩ ???ޤ?????