taglinefilesource code
major110arch/i386/boot/tools/build.cmajor_root = major(sb.st_dev);
major117arch/i386/boot/tools/build.cmajor_root = major(sb.st_rdev);
major124drivers/block/genhd.cdev = ((hd->major) << 8) | current_minor;
major210drivers/block/genhd.cextended_partition(hd, (hd->major << 8) | minor);
major349drivers/block/genhd.cint major  = dev->major << 8;
major353drivers/block/genhd.cblk_size[dev->major] = NULL;
major355drivers/block/genhd.ccheck_partition(dev, major + first_minor);
major360drivers/block/genhd.cblk_size[dev->major] = dev->sizes;
major367drivers/block/genhd.cint major  = dev->major << 8;
major370drivers/block/genhd.cblk_size[dev->major] = NULL;
major379drivers/block/genhd.ccheck_partition(dev, major + first_minor);
major384drivers/block/genhd.cblk_size[dev->major] = dev->sizes;
major1081drivers/block/hd.cint target, major;
major1102drivers/block/hd.cmajor = MAJOR_NR << 8;
major1105drivers/block/hd.csync_dev(major | start | i);
major1106drivers/block/hd.cinvalidate_inodes(major | start | i);
major1107drivers/block/hd.cinvalidate_buffers(major | start | i);
major414drivers/block/ide-cd.cint major = HWIF(drive)->major;
major425drivers/block/ide-cd.crq->next = blk_dev[major].current_request;
major426drivers/block/ide-cd.cblk_dev[major].current_request = rq;
major444drivers/block/ide-cd.crq->dev = MKDEV (major, (drive->select.b.unit) << PARTN_BITS);
major460drivers/block/ide-cd.crq->next = blk_dev[major].current_request;
major461drivers/block/ide-cd.cblk_dev[major].current_request = rq;
major1241drivers/block/ide-cd.cint major = HWIF(drive)->major;
major1244drivers/block/ide-cd.creq.dev = MKDEV (major, (drive->select.b.unit) << PARTN_BITS);
major1259drivers/block/ide-cd.cp = &blk_dev[major].current_request;
major1267drivers/block/ide-cd.cblk_dev[major].request_fn ();
major2015drivers/block/ide-cd.cblksize_size[HWIF(drive)->major][drive->select.b.unit << PARTN_BITS] = CD_FRAMESIZE;
major224drivers/block/ide.chwif->major  = ide_hwif_to_major[h];
major443drivers/block/ide.cblksize_size[hwif->major] = bs;
major450drivers/block/ide.cgd->major  = hwif->major;    /* our major device number */
major1135drivers/block/ide.cif (MAJOR(rq->dev) != hwif->major || unit >= MAX_DRIVES) {
major1216drivers/block/ide.crq = blk_dev[hwif->major].current_request;
major1223drivers/block/ide.cblk_dev[hwif->major].current_request = rq->next;
major1365drivers/block/ide.cint    major = MAJOR(i_rdev);
major1370drivers/block/ide.cif (hwif->present && major == hwif->major) {
major1405drivers/block/ide.cunsigned int major = MAJOR(rdev);
major1422drivers/block/ide.cbdev = &blk_dev[major];
major1510drivers/block/ide.cunsigned int p, major, minor;
major1516drivers/block/ide.cmajor = MAJOR(i_rdev);
major1528drivers/block/ide.csync_dev           (major | (minor + p));
major1529drivers/block/ide.cinvalidate_inodes  (major | (minor + p));
major1530drivers/block/ide.cinvalidate_buffers (major | (minor + p));
major2517drivers/block/ide.cswitch (hwif->major) {
major2526drivers/block/ide.cif (register_blkdev (hwif->major, hwif->name, &ide_fops)) {
major2527drivers/block/ide.cprintk("%s: UNABLE TO GET MAJOR NUMBER %d\n", hwif->name, hwif->major);
major2530drivers/block/ide.c(void) unregister_blkdev (hwif->major, hwif->name);
major2533drivers/block/ide.cblk_dev[hwif->major].request_fn = rfn;
major2534drivers/block/ide.cread_ahead[hwif->major] = 8;  /* (4kB) */
major270drivers/block/ide.hbyte    major;    /* our major number */
major212drivers/block/ll_rw_blk.cint minor,major;
major214drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
major216drivers/block/ll_rw_blk.cif (major < 0 || major >= MAX_BLKDEV) return 0;
major217drivers/block/ll_rw_blk.creturn ro_bits[major][minor >> 5] & (1 << (minor & 31));
major222drivers/block/ll_rw_blk.cint minor,major;
major224drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
major226drivers/block/ll_rw_blk.cif (major < 0 || major >= MAX_BLKDEV) return;
major227drivers/block/ll_rw_blk.cif (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31);
major228drivers/block/ll_rw_blk.celse ro_bits[major][minor >> 5] &= ~(1 << (minor & 31));
major281drivers/block/ll_rw_blk.cstatic void make_request(int major,int rw, struct buffer_head * bh)
major304drivers/block/ll_rw_blk.cif (blk_size[major])
major305drivers/block/ll_rw_blk.cif (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) {
major334drivers/block/ll_rw_blk.cif ((   major == IDE0_MAJOR  /* same as HD_MAJOR */
major335drivers/block/ll_rw_blk.c|| major == IDE1_MAJOR
major336drivers/block/ll_rw_blk.c|| major == FLOPPY_MAJOR
major337drivers/block/ll_rw_blk.c|| major == SCSI_DISK_MAJOR
major338drivers/block/ll_rw_blk.c|| major == SCSI_CDROM_MAJOR
major339drivers/block/ll_rw_blk.c|| major == IDE2_MAJOR
major340drivers/block/ll_rw_blk.c|| major == IDE3_MAJOR)
major341drivers/block/ll_rw_blk.c&& (req = blk_dev[major].current_request))
major344drivers/block/ll_rw_blk.cif (major == HD_MAJOR || major == FLOPPY_MAJOR)
major346drivers/block/ll_rw_blk.cif (major == FLOPPY_MAJOR)
major409drivers/block/ll_rw_blk.cadd_request(major+blk_dev,req);
major415drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
major419drivers/block/ll_rw_blk.cif (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) {
major440drivers/block/ll_rw_blk.cadd_request(major+blk_dev,req);
major450drivers/block/ll_rw_blk.cunsigned int major;
major464drivers/block/ll_rw_blk.cif ((major = MAJOR(bh[0]->b_dev)) < MAX_BLKDEV)
major465drivers/block/ll_rw_blk.cdev = blk_dev + major;
major475drivers/block/ll_rw_blk.cif (blksize_size[major]) {
major476drivers/block/ll_rw_blk.ci = blksize_size[major][MINOR(bh[0]->b_dev)];
major506drivers/block/ll_rw_blk.cmake_request(major, rw, bh[i]);
major529drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
major532drivers/block/ll_rw_blk.cif (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) {
major570drivers/block/ll_rw_blk.cadd_request(major+blk_dev,req[j]);
major1349drivers/block/sjcd.cunsigned char major, minor;
major1411drivers/block/sjcd.cprintk( " Version %1x.%02x.", ( int )sjcd_version.major,
major2002drivers/char/console.cconsole_driver.major = TTY_MAJOR;
major2716drivers/char/cyclades.ccy_serial_driver.major = CYCLADES_MAJOR;
major2751drivers/char/cyclades.ccy_callout_driver.major = CYCLADESAUX_MAJOR;
major220drivers/char/pty.cpty_driver.major = TTY_MAJOR;
major2176drivers/char/scc.cscc_driver.major = TTY_MAJOR;    
major2602drivers/char/serial.cserial_driver.major = TTY_MAJOR;
major2638drivers/char/serial.ccallout_driver.major = TTYAUX_MAJOR;
major248drivers/char/tty_io.cint  major, minor;
major252drivers/char/tty_io.cmajor = MAJOR(device);
major255drivers/char/tty_io.cif (p->major != major)
major830drivers/char/tty_io.co_device = MKDEV(driver->other->major,
major1659drivers/char/tty_io.cerror = register_chrdev(driver->major, driver->name, &tty_fops);
major1662drivers/char/tty_io.celse if(driver->major == 0)
major1663drivers/char/tty_io.cdriver->major = error;
major1691drivers/char/tty_io.celse if (p->major == driver->major)
major1696drivers/char/tty_io.cretval = unregister_chrdev(driver->major, driver->name);
major1700drivers/char/tty_io.cregister_chrdev(driver->major, othername, &tty_fops);
major341drivers/scsi/hosts.hunsigned char major;
major1260drivers/scsi/sd.cint target, major;
major1282drivers/scsi/sd.cmajor = MAJOR_NR << 8;
major1285drivers/scsi/sd.csync_dev(major | start | i);
major1286drivers/scsi/sd.cinvalidate_inodes(major | start | i);
major1287drivers/scsi/sd.cinvalidate_buffers(major | start | i);
major1313drivers/scsi/sd.cint major;
major1323drivers/scsi/sd.cmajor = MAJOR_NR << 8;
major1326drivers/scsi/sd.csync_dev(major | start | i);
major1327drivers/scsi/sd.cinvalidate_inodes(major | start | i);
major1328drivers/scsi/sd.cinvalidate_buffers(major | start | i);
major1092drivers/scsi/sr.cint i, major;
major1094drivers/scsi/sr.cmajor = MAJOR_NR << 8;
major1102drivers/scsi/sr.cinvalidate_inodes(major | i);
major1103drivers/scsi/sr.cinvalidate_buffers(major | 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 == NULL) {
major70fs/devices.cchrdevs[major].name = name;
major71fs/devices.cchrdevs[major].fops = fops;
major72fs/devices.creturn major;
major77fs/devices.cif (major >= MAX_CHRDEV)
major79fs/devices.cif (chrdevs[major].fops && chrdevs[major].fops != fops)
major81fs/devices.cchrdevs[major].name = name;
major82fs/devices.cchrdevs[major].fops = fops;
major86fs/devices.cint register_blkdev(unsigned int major, const char * name, struct file_operations *fops)
major88fs/devices.cif (major == 0) {
major89fs/devices.cfor (major = MAX_BLKDEV-1; major > 0; major--) {
major90fs/devices.cif (blkdevs[major].fops == NULL) {
major91fs/devices.cblkdevs[major].name = name;
major92fs/devices.cblkdevs[major].fops = fops;
major93fs/devices.creturn major;
major98fs/devices.cif (major >= MAX_BLKDEV)
major100fs/devices.cif (blkdevs[major].fops && blkdevs[major].fops != fops)
major102fs/devices.cblkdevs[major].name = name;
major103fs/devices.cblkdevs[major].fops = fops;
major107fs/devices.cint unregister_chrdev(unsigned int major, const char * name)
major109fs/devices.cif (major >= MAX_CHRDEV)
major111fs/devices.cif (!chrdevs[major].fops)
major113fs/devices.cif (strcmp(chrdevs[major].name, name))
major115fs/devices.cchrdevs[major].name = NULL;
major116fs/devices.cchrdevs[major].fops = NULL;
major120fs/devices.cint unregister_blkdev(unsigned int major, const char * name)
major122fs/devices.cif (major >= MAX_BLKDEV)
major124fs/devices.cif (!blkdevs[major].fops)
major126fs/devices.cif (strcmp(blkdevs[major].name, name))
major128fs/devices.cblkdevs[major].name = NULL;
major129fs/devices.cblkdevs[major].fops = NULL;
major400include/linux/fs.hextern int unregister_blkdev(unsigned int major, const char * name);
major406include/linux/fs.hextern int unregister_chrdev(unsigned int major, const char * name);
major44include/linux/genhd.hint major;      /* major number of driver */
major103include/linux/tty_driver.hshort  major;    /* major device number */