Lines Matching full:minor
8 * We reserve minor number 0 for a control interface. ioctl()s on this
9 * device are used to bind the other minor numbers to block devices.
57 const int minor = iminor(inode); in raw_open() local
61 if (minor == 0) { /* It is the control device */ in raw_open()
71 bdev = raw_devices[minor].binding; in raw_open()
84 if (++raw_devices[minor].inuse == 1) in raw_open()
104 const int minor= iminor(inode); in raw_release() local
108 bdev = raw_devices[minor].binding; in raw_release()
109 if (--raw_devices[minor].inuse == 0) in raw_release()
128 static int bind_set(int number, u64 major, u64 minor) in bind_set() argument
130 dev_t dev = MKDEV(major, minor); in bind_set()
137 if (MAJOR(dev) != major || MINOR(dev) != minor) in bind_set()
153 * major/minor numbers make sense. in bind_set()
232 rq.block_minor = MINOR(dev); in raw_ctl_ioctl()
274 rq.block_minor = MINOR(dev); in raw_ctl_compat_ioctl()