taglinefilesource code
major85drivers/block/genhd.cdev = ((hd->major) << 8) | current_minor;
major124drivers/block/genhd.cextended_partition(hd, (hd->major << 8) | minor);
major166drivers/block/genhd.cint major = dev->major << 8;
major169drivers/block/genhd.ccheck_partition(dev, major+(drive<<dev->minor_shift));
major179drivers/block/genhd.cint major = dev->major << 8;
major190drivers/block/genhd.ccheck_partition(dev, major+(drive<<dev->minor_shift));
major194drivers/block/genhd.cblk_size[dev->major] = dev->sizes;
major1062drivers/block/hd.cint target, major;
major1081drivers/block/hd.cmajor = MAJOR_NR << 8;
major1084drivers/block/hd.csync_dev(major | start | i);
major1085drivers/block/hd.cinvalidate_inodes(major | start | i);
major1086drivers/block/hd.cinvalidate_buffers(major | start | i);
major124drivers/block/ll_rw_blk.cint minor,major;
major126drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
major128drivers/block/ll_rw_blk.cif (major < 0 || major >= MAX_BLKDEV) return 0;
major129drivers/block/ll_rw_blk.creturn ro_bits[major][minor >> 5] & (1 << (minor & 31));
major134drivers/block/ll_rw_blk.cint minor,major;
major136drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
major138drivers/block/ll_rw_blk.cif (major < 0 || major >= MAX_BLKDEV) return;
major139drivers/block/ll_rw_blk.cif (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31);
major140drivers/block/ll_rw_blk.celse ro_bits[major][minor >> 5] &= ~(1 << (minor & 31));
major178drivers/block/ll_rw_blk.cstatic void make_request(int major,int rw, struct buffer_head * bh)
major201drivers/block/ll_rw_blk.cif (blk_size[major])
major202drivers/block/ll_rw_blk.cif (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) {
major227drivers/block/ll_rw_blk.cif ((major == HD_MAJOR
major228drivers/block/ll_rw_blk.c|| major == SCSI_DISK_MAJOR
major229drivers/block/ll_rw_blk.c|| major == SCSI_CDROM_MAJOR)
major230drivers/block/ll_rw_blk.c&& (req = blk_dev[major].current_request))
major232drivers/block/ll_rw_blk.cif (major == HD_MAJOR)
major299drivers/block/ll_rw_blk.cadd_request(major+blk_dev,req);
major305drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
major308drivers/block/ll_rw_blk.cif (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) {
major331drivers/block/ll_rw_blk.cadd_request(major+blk_dev,req);
major341drivers/block/ll_rw_blk.cunsigned int major;
major356drivers/block/ll_rw_blk.cif ((major = MAJOR(bh[0]->b_dev)) < MAX_BLKDEV)
major357drivers/block/ll_rw_blk.cdev = blk_dev + major;
major367drivers/block/ll_rw_blk.cif (blksize_size[major]) {
major368drivers/block/ll_rw_blk.ci = blksize_size[major][MINOR(bh[0]->b_dev)];
major405drivers/block/ll_rw_blk.cmake_request(major, rw, bh[i]);
major433drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
major436drivers/block/ll_rw_blk.cif (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) {
major466drivers/block/ll_rw_blk.cadd_request(major+blk_dev,req);
major1516drivers/char/console.cconsole_driver.major = TTY_MAJOR;
major195drivers/char/pty.cpty_driver.major = TTY_MAJOR;
major2271drivers/char/serial.cserial_driver.major = TTY_MAJOR;
major2307drivers/char/serial.ccallout_driver.major = TTYAUX_MAJOR;
major212drivers/char/tty_io.cint  major, minor;
major216drivers/char/tty_io.cmajor = MAJOR(device);
major219drivers/char/tty_io.cif (p->major != major)
major779drivers/char/tty_io.co_device = MKDEV(driver->other->major,
major1539drivers/char/tty_io.c(void) register_chrdev(driver->major, driver->name, &tty_fops);
major1056drivers/scsi/sd.cint target, major;
major1076drivers/scsi/sd.cmajor = MAJOR_NR << 8;
major1079drivers/scsi/sd.csync_dev(major | start | i);
major1080drivers/scsi/sd.cinvalidate_inodes(major | start | i);
major1081drivers/scsi/sd.cinvalidate_buffers(major | start | i);
major51fs/devices.cstruct file_operations * get_blkfops(unsigned int major)
major53fs/devices.cif (major >= MAX_BLKDEV)
major55fs/devices.creturn blkdevs[major].fops;
major58fs/devices.cstruct file_operations * get_chrfops(unsigned int major)
major60fs/devices.cif (major >= MAX_CHRDEV)
major62fs/devices.creturn chrdevs[major].fops;
major65fs/devices.cint register_chrdev(unsigned int major, const char * name, struct file_operations *fops)
major67fs/devices.cif (major >= MAX_CHRDEV)
major69fs/devices.cif (chrdevs[major].fops)
major71fs/devices.cchrdevs[major].name = name;
major72fs/devices.cchrdevs[major].fops = fops;
major76fs/devices.cint register_blkdev(unsigned int major, const char * name, struct file_operations *fops)
major78fs/devices.cif (major >= MAX_BLKDEV)
major80fs/devices.cif (blkdevs[major].fops)
major82fs/devices.cblkdevs[major].name = name;
major83fs/devices.cblkdevs[major].fops = fops;
major87fs/devices.cint unregister_chrdev(unsigned int major, const char * name)
major89fs/devices.cif (major >= MAX_CHRDEV)
major91fs/devices.cif (!chrdevs[major].fops)
major93fs/devices.cif (strcmp(chrdevs[major].name, name))
major95fs/devices.cchrdevs[major].name = NULL;
major96fs/devices.cchrdevs[major].fops = NULL;
major100fs/devices.cint unregister_blkdev(unsigned int major, const char * name)
major102fs/devices.cif (major >= MAX_BLKDEV)
major104fs/devices.cif (!blkdevs[major].fops)
major106fs/devices.cif (strcmp(blkdevs[major].name, name))
major108fs/devices.cblkdevs[major].name = NULL;
major109fs/devices.cblkdevs[major].fops = NULL;
major350include/linux/fs.hextern int unregister_blkdev(unsigned int major, const char * name);
major356include/linux/fs.hextern int unregister_chrdev(unsigned int major, const char * name);
major33include/linux/genhd.hint major;      /* major number of driver */
major103include/linux/tty_driver.hshort  major;    /* major device number */
major104tools/build.cmajor_root = major(sb.st_dev);
major111tools/build.cmajor_root = major(sb.st_rdev);