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.
58 const int minor = iminor(inode); in raw_open() local
62 if (minor == 0) { /* It is the control device */ in raw_open()
78 if (!raw_devices[minor].binding) in raw_open()
80 bdev = blkdev_get_by_dev(raw_devices[minor].binding, in raw_open()
91 if (++raw_devices[minor].inuse == 1) in raw_open()
95 raw_devices[minor].bdev = bdev; in raw_open()
112 const int minor= iminor(inode); in raw_release() local
116 bdev = raw_devices[minor].bdev; in raw_release()
117 if (--raw_devices[minor].inuse == 0) in raw_release()
136 static int bind_set(int number, u64 major, u64 minor) in bind_set() argument
138 dev_t dev = MKDEV(major, minor); in bind_set()
146 if (MAJOR(dev) != major || MINOR(dev) != minor) in bind_set()
162 * major/minor numbers make sense. in bind_set()
224 rq.block_minor = MINOR(dev); in raw_ctl_ioctl()
266 rq.block_minor = MINOR(dev); in raw_ctl_compat_ioctl()