taglinefilesource code
major26fs/devices.cint register_chrdev(unsigned int major, const char * name, struct file_operations *fops)
major28fs/devices.cif (major >= MAX_CHRDEV)
major30fs/devices.cif (chrdev_fops[major])
major32fs/devices.cchrdev_fops[major] = fops;
major36fs/devices.cint register_blkdev(unsigned int major, const char * name, struct file_operations *fops)
major38fs/devices.cif (major >= MAX_BLKDEV)
major40fs/devices.cif (blkdev_fops[major])
major42fs/devices.cblkdev_fops[major] = fops;
major33include/linux/genhd.hint major;      /* major number of driver */
major84kernel/blk_drv/genhd.cdev = ((hd->major) << 8) | current_minor;
major123kernel/blk_drv/genhd.cextended_partition(hd, (hd->major << 8) | minor);
major165kernel/blk_drv/genhd.cint major = dev->major << 8;
major168kernel/blk_drv/genhd.ccheck_partition(dev, major+(drive<<dev->minor_shift));
major178kernel/blk_drv/genhd.cint major = dev->major << 8;
major189kernel/blk_drv/genhd.ccheck_partition(dev, major+(drive<<dev->minor_shift));
major193kernel/blk_drv/genhd.cblk_size[dev->major] = dev->sizes;
major738kernel/blk_drv/hd.cint target, major;
major757kernel/blk_drv/hd.cmajor = MAJOR_NR << 8;
major760kernel/blk_drv/hd.csync_dev(major | start | i);
major761kernel/blk_drv/hd.cinvalidate_inodes(major | start | i);
major762kernel/blk_drv/hd.cinvalidate_buffers(major | start | i);
major68kernel/blk_drv/ll_rw_blk.cint minor,major;
major70kernel/blk_drv/ll_rw_blk.cmajor = MAJOR(dev);
major72kernel/blk_drv/ll_rw_blk.cif (major < 0 || major >= MAX_BLKDEV) return 0;
major73kernel/blk_drv/ll_rw_blk.creturn ro_bits[major][minor >> 5] & (1 << (minor & 31));
major78kernel/blk_drv/ll_rw_blk.cint minor,major;
major80kernel/blk_drv/ll_rw_blk.cmajor = MAJOR(dev);
major82kernel/blk_drv/ll_rw_blk.cif (major < 0 || major >= MAX_BLKDEV) return;
major83kernel/blk_drv/ll_rw_blk.cif (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31);
major84kernel/blk_drv/ll_rw_blk.celse ro_bits[major][minor >> 5] &= ~(1 << (minor & 31));
major124kernel/blk_drv/ll_rw_blk.cstatic void make_request(int major,int rw, struct buffer_head * bh)
major147kernel/blk_drv/ll_rw_blk.cif (blk_size[major])
major148kernel/blk_drv/ll_rw_blk.cif (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) {
major163kernel/blk_drv/ll_rw_blk.cif ((major == 3 ||  major == 8 || major == 11)&& (req = blk_dev[major].current_request)) {
major164kernel/blk_drv/ll_rw_blk.cif(major == 3) req = req->next;
major217kernel/blk_drv/ll_rw_blk.cadd_request(major+blk_dev,req);
major223kernel/blk_drv/ll_rw_blk.cunsigned int major = MAJOR(dev);
major225kernel/blk_drv/ll_rw_blk.cif (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) {
major258kernel/blk_drv/ll_rw_blk.cadd_request(major+blk_dev,req);
major268kernel/blk_drv/ll_rw_blk.cunsigned int major;
major292kernel/blk_drv/ll_rw_blk.cif ((major=MAJOR(bh[0]->b_dev)) >= MAX_BLKDEV ||
major293kernel/blk_drv/ll_rw_blk.c!(blk_dev[major].request_fn)) {
major311kernel/blk_drv/ll_rw_blk.cif (!blk_dev[major].current_request && nr > 1) {
major312kernel/blk_drv/ll_rw_blk.cblk_dev[major].current_request = &plug;
major319kernel/blk_drv/ll_rw_blk.cif (bh[i]) make_request(major, rw, bh[i]);
major322kernel/blk_drv/ll_rw_blk.cblk_dev[major].current_request = plug.next;
major323kernel/blk_drv/ll_rw_blk.cdev = major+blk_dev;
major333kernel/blk_drv/ll_rw_blk.cunsigned int major = MAJOR(dev);
major335kernel/blk_drv/ll_rw_blk.cif (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) {
major372kernel/blk_drv/ll_rw_blk.cadd_request(major+blk_dev,req);
major867kernel/blk_drv/scsi/sd.cint target, major;
major887kernel/blk_drv/scsi/sd.cmajor = MAJOR_NR << 8;
major890kernel/blk_drv/scsi/sd.csync_dev(major | start | i);
major891kernel/blk_drv/scsi/sd.cinvalidate_inodes(major | start | i);
major892kernel/blk_drv/scsi/sd.cinvalidate_buffers(major | start | i);
major1184kernel/chr_drv/tty_io.cint major, minor;
major1188kernel/chr_drv/tty_io.cmajor = MAJOR(inode->i_rdev);
major1190kernel/chr_drv/tty_io.cif (major == 5) {
major1192kernel/chr_drv/tty_io.cmajor = 4;
major1196kernel/chr_drv/tty_io.c} else if (major == 4) {
major1209kernel/chr_drv/tty_io.cfilp->f_rdev = (major << 8) | minor;
major102tools/build.cmajor_root = major(sb.st_dev);
major109tools/build.cmajor_root = major(sb.st_rdev);