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;
major1096drivers/block/hd.cint target, major;
major1117drivers/block/hd.cmajor = MAJOR_NR << 8;
major1120drivers/block/hd.csync_dev(major | start | i);
major1121drivers/block/hd.cinvalidate_inodes(major | start | i);
major1122drivers/block/hd.cinvalidate_buffers(major | start | i);
major125drivers/block/ll_rw_blk.cint minor,major;
major127drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
major129drivers/block/ll_rw_blk.cif (major < 0 || major >= MAX_BLKDEV) return 0;
major130drivers/block/ll_rw_blk.creturn ro_bits[major][minor >> 5] & (1 << (minor & 31));
major135drivers/block/ll_rw_blk.cint minor,major;
major137drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
major139drivers/block/ll_rw_blk.cif (major < 0 || major >= MAX_BLKDEV) return;
major140drivers/block/ll_rw_blk.cif (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31);
major141drivers/block/ll_rw_blk.celse ro_bits[major][minor >> 5] &= ~(1 << (minor & 31));
major193drivers/block/ll_rw_blk.cstatic void make_request(int major,int rw, struct buffer_head * bh)
major216drivers/block/ll_rw_blk.cif (blk_size[major])
major217drivers/block/ll_rw_blk.cif (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) {
major243drivers/block/ll_rw_blk.cif ((major == HD_MAJOR
major244drivers/block/ll_rw_blk.c|| major == FLOPPY_MAJOR
major245drivers/block/ll_rw_blk.c|| major == SCSI_DISK_MAJOR
major246drivers/block/ll_rw_blk.c|| major == SCSI_CDROM_MAJOR)
major247drivers/block/ll_rw_blk.c&& (req = blk_dev[major].current_request))
major249drivers/block/ll_rw_blk.cif (major == HD_MAJOR || major == FLOPPY_MAJOR)
major316drivers/block/ll_rw_blk.cadd_request(major+blk_dev,req);
major322drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
major325drivers/block/ll_rw_blk.cif (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) {
major348drivers/block/ll_rw_blk.cadd_request(major+blk_dev,req);
major358drivers/block/ll_rw_blk.cunsigned int major;
major373drivers/block/ll_rw_blk.cif ((major = MAJOR(bh[0]->b_dev)) < MAX_BLKDEV)
major374drivers/block/ll_rw_blk.cdev = blk_dev + major;
major384drivers/block/ll_rw_blk.cif (blksize_size[major]) {
major385drivers/block/ll_rw_blk.ci = blksize_size[major][MINOR(bh[0]->b_dev)];
major422drivers/block/ll_rw_blk.cmake_request(major, rw, bh[i]);
major450drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
major453drivers/block/ll_rw_blk.cif (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) {
major483drivers/block/ll_rw_blk.cadd_request(major+blk_dev,req);
major1877drivers/char/console.cconsole_driver.major = TTY_MAJOR;
major220drivers/char/pty.cpty_driver.major = TTY_MAJOR;
major2360drivers/char/serial.cserial_driver.major = TTY_MAJOR;
major2396drivers/char/serial.ccallout_driver.major = TTYAUX_MAJOR;
major215drivers/char/tty_io.cint  major, minor;
major219drivers/char/tty_io.cmajor = MAJOR(device);
major222drivers/char/tty_io.cif (p->major != major)
major782drivers/char/tty_io.co_device = MKDEV(driver->other->major,
major1575drivers/char/tty_io.cerror = register_chrdev(driver->major, driver->name, &tty_fops);
major1578drivers/char/tty_io.celse if(driver->major == 0)
major1579drivers/char/tty_io.cdriver->major = error;
major1607drivers/char/tty_io.celse if (p->major == driver->major)
major1612drivers/char/tty_io.cretval = unregister_chrdev(driver->major, driver->name);
major289drivers/scsi/hosts.hunsigned char major;
major1127drivers/scsi/sd.cint target, major;
major1147drivers/scsi/sd.cmajor = MAJOR_NR << 8;
major1150drivers/scsi/sd.csync_dev(major | start | i);
major1151drivers/scsi/sd.cinvalidate_inodes(major | start | i);
major1152drivers/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 == 0) {
major68fs/devices.cfor (major = MAX_CHRDEV-1; major > 0; major--) {
major69fs/devices.cif (chrdevs[major].fops == fops)
major70fs/devices.creturn major;
major72fs/devices.cfor (major = MAX_CHRDEV-1; major > 0; major--) {
major73fs/devices.cif (chrdevs[major].fops == NULL) {
major74fs/devices.cchrdevs[major].name = name;
major75fs/devices.cchrdevs[major].fops = fops;
major76fs/devices.creturn major;
major81fs/devices.cif (major >= MAX_CHRDEV)
major83fs/devices.cif (chrdevs[major].fops && chrdevs[major].fops != fops)
major85fs/devices.cchrdevs[major].name = name;
major86fs/devices.cchrdevs[major].fops = fops;
major90fs/devices.cint register_blkdev(unsigned int major, const char * name, struct file_operations *fops)
major92fs/devices.cif (major == 0) {
major93fs/devices.cfor (major = MAX_BLKDEV-1; major > 0; major--) {
major94fs/devices.cif (blkdevs[major].fops == fops)
major95fs/devices.creturn major;
major97fs/devices.cfor (major = MAX_BLKDEV-1; major > 0; major--) {
major98fs/devices.cif (blkdevs[major].fops == NULL) {
major99fs/devices.cblkdevs[major].name = name;
major100fs/devices.cblkdevs[major].fops = fops;
major101fs/devices.creturn major;
major106fs/devices.cif (major >= MAX_BLKDEV)
major108fs/devices.cif (blkdevs[major].fops && blkdevs[major].fops != fops)
major110fs/devices.cblkdevs[major].name = name;
major111fs/devices.cblkdevs[major].fops = fops;
major115fs/devices.cint unregister_chrdev(unsigned int major, const char * name)
major117fs/devices.cif (major >= MAX_CHRDEV)
major119fs/devices.cif (!chrdevs[major].fops)
major121fs/devices.cif (strcmp(chrdevs[major].name, name))
major123fs/devices.cchrdevs[major].name = NULL;
major124fs/devices.cchrdevs[major].fops = NULL;
major128fs/devices.cint unregister_blkdev(unsigned int major, const char * name)
major130fs/devices.cif (major >= MAX_BLKDEV)
major132fs/devices.cif (!blkdevs[major].fops)
major134fs/devices.cif (strcmp(blkdevs[major].name, name))
major136fs/devices.cblkdevs[major].name = NULL;
major137fs/devices.cblkdevs[major].fops = NULL;
major390include/linux/fs.hextern int unregister_blkdev(unsigned int major, const char * name);
major396include/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 */
major105tools/build.cmajor_root = major(sb.st_dev);
major112tools/build.cmajor_root = major(sb.st_rdev);