Go back to the historical minor numbers. Add a module version while
I'm here. Asked for minor numbers by: jhb
This commit is contained in:
parent
31359ff400
commit
4ec450cefd
@ -49,8 +49,8 @@ static d_ioctl_t null_ioctl;
|
||||
static d_read_t zero_read;
|
||||
|
||||
#define CDEV_MAJOR 2
|
||||
#define NULL_MINOR 0
|
||||
#define ZERO_MINOR 1
|
||||
#define NULL_MINOR 2
|
||||
#define ZERO_MINOR 12
|
||||
|
||||
static struct cdevsw null_cdevsw = {
|
||||
.d_version = D_VERSION,
|
||||
@ -140,3 +140,4 @@ null_modevent(module_t mod __unused, int type, void *data __unused)
|
||||
}
|
||||
|
||||
DEV_MODULE(null, null_modevent, NULL);
|
||||
MODULE_VERSION(null, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user