taglinefilesource code
major84drivers/block/genhd.cdev = ((hd->major) << 8) | current_minor;
major123drivers/block/genhd.cextended_partition(hd, (hd->major << 8) | minor);
major165drivers/block/genhd.cint major = dev->major << 8;
major168drivers/block/genhd.ccheck_partition(dev, major+(drive<<dev->minor_shift));
major178drivers/block/genhd.cint major = dev->major << 8;
major189drivers/block/genhd.ccheck_partition(dev, major+(drive<<dev->minor_shift));
major193drivers/block/genhd.cblk_size[dev->major] = dev->sizes;
major763drivers/block/hd.cint target, major;
major782drivers/block/hd.cmajor = MAJOR_NR << 8;
major785drivers/block/hd.csync_dev(major | start | i);
major786drivers/block/hd.cinvalidate_inodes(major | start | i);
major787drivers/block/hd.cinvalidate_buffers(major | start | i);
major128drivers/block/ll_rw_blk.cint minor,major;
major130drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
major132drivers/block/ll_rw_blk.cif (major < 0 || major >= MAX_BLKDEV) return 0;
major133drivers/block/ll_rw_blk.creturn ro_bits[major][minor >> 5] & (1 << (minor & 31));
major138drivers/block/ll_rw_blk.cint minor,major;
major140drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
major142drivers/block/ll_rw_blk.cif (major < 0 || major >= MAX_BLKDEV) return;
major143drivers/block/ll_rw_blk.cif (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31);
major144drivers/block/ll_rw_blk.celse ro_bits[major][minor >> 5] &= ~(1 << (minor & 31));
major182drivers/block/ll_rw_blk.cstatic void make_request(int major,int rw, struct buffer_head * bh)
major205drivers/block/ll_rw_blk.cif (blk_size[major])
major206drivers/block/ll_rw_blk.cif (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) {
major231drivers/block/ll_rw_blk.cif ((major == HD_MAJOR
major232drivers/block/ll_rw_blk.c|| major == SCSI_DISK_MAJOR
major233drivers/block/ll_rw_blk.c|| major == SCSI_CDROM_MAJOR)
major234drivers/block/ll_rw_blk.c&& (req = blk_dev[major].current_request))
major236drivers/block/ll_rw_blk.cif (major == HD_MAJOR)
major303drivers/block/ll_rw_blk.cadd_request(major+blk_dev,req);
major309drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
major311drivers/block/ll_rw_blk.cif (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) {
major335drivers/block/ll_rw_blk.cadd_request(major+blk_dev,req);
major345drivers/block/ll_rw_blk.cunsigned int major;
major360drivers/block/ll_rw_blk.cif ((major = MAJOR(bh[0]->b_dev)) < MAX_BLKDEV)
major361drivers/block/ll_rw_blk.cdev = blk_dev + major;
major371drivers/block/ll_rw_blk.cif (blksize_size[major]) {
major372drivers/block/ll_rw_blk.ci = blksize_size[major][MINOR(bh[0]->b_dev)];
major409drivers/block/ll_rw_blk.cmake_request(major, rw, bh[i]);
major437drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
major439drivers/block/ll_rw_blk.cif (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) {
major470drivers/block/ll_rw_blk.cadd_request(major+blk_dev,req);
major1466drivers/char/tty_io.cint major, minor;
major1471drivers/char/tty_io.cmajor = MAJOR(inode->i_rdev);
major1473drivers/char/tty_io.cif (major == TTYAUX_MAJOR) {
major1475drivers/char/tty_io.cmajor = TTY_MAJOR;
major1479drivers/char/tty_io.c} else if (major == TTY_MAJOR) {
major1492drivers/char/tty_io.cfilp->f_rdev = (major << 8) | minor;
major1052drivers/scsi/sd.cint target, major;
major1072drivers/scsi/sd.cmajor = MAJOR_NR << 8;
major1075drivers/scsi/sd.csync_dev(major | start | i);
major1076drivers/scsi/sd.cinvalidate_inodes(major | start | i);
major1077drivers/scsi/sd.cinvalidate_buffers(major | start | i);
major494drivers/sound/sb16_dsp.cint             i, major, minor;
major496drivers/sound/sb16_dsp.cmajor = minor = 0;
major502drivers/sound/sb16_dsp.cif (major == 0)
major503drivers/sound/sb16_dsp.cmajor = INB (DSP_READ);
major513drivers/sound/sb16_dsp.csprintf (sb16_dsp_operations.name, "SoundBlaster 16 %d.%d", major, minor);
major52drivers/sound/sb_dsp.cstatic int  major=1, minor=0;  /* DSP version */
major421drivers/sound/sb_dsp.cif (major == 3)  /* SB Pro */
major441drivers/sound/sb_dsp.cif (major == 3)  /* SB Pro */
major654drivers/sound/sb_dsp.cmajor = minor = 0;
major661drivers/sound/sb_dsp.cif (major == 0)
major662drivers/sound/sb_dsp.cmajor = INB (DSP_READ);
major671drivers/sound/sb_dsp.cif (major == 2 || major == 3)
major674drivers/sound/sb_dsp.cif (major == 4)
major677drivers/sound/sb_dsp.cif (major >= 3)
major681drivers/sound/sb_dsp.cif (major >= 3)
major682drivers/sound/sb_dsp.csb_mixer_init(major);
major686drivers/sound/sb_dsp.cif (major > 3 || (major == 3 && minor > 0))  /* SB Pro2 or later */
major692drivers/sound/sb_dsp.cif (major >= 3)
major695drivers/sound/sb_dsp.csprintf (sb_dsp_operations.name, "SoundBlaster Pro %d.%d", major, minor);
major701drivers/sound/sb_dsp.csprintf (sb_dsp_operations.name, "SoundBlaster %d.%d", major, minor);
major726drivers/sound/sb_dsp.csb_midi_init(major);
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;
major44include/linux/ddi.hshort  int  major;      /* driver major dev number  */
major330include/linux/fs.hextern int unregister_blkdev(unsigned int major, const char * name);
major336include/linux/fs.hextern int unregister_chrdev(unsigned int major, const char * name);
major33include/linux/genhd.hint major;      /* major number of driver */
major102tools/build.cmajor_root = major(sb.st_dev);
major109tools/build.cmajor_root = major(sb.st_rdev);