taglinefilesource code
minor111arch/i386/boot/tools/build.cminor_root = minor(sb.st_dev);
minor118arch/i386/boot/tools/build.cminor_root = minor(sb.st_rdev);
minor40drivers/block/genhd.cstatic void print_minor_name (struct gendisk *hd, int minor)
minor42drivers/block/genhd.cunsigned int unit = minor >> hd->minor_shift;
minor43drivers/block/genhd.cunsigned int part = minor & ((1 << hd->minor_shift) - 1);
minor66drivers/block/genhd.cstatic void add_partition (struct gendisk *hd, int minor, int start, int size)
minor68drivers/block/genhd.chd->part[minor].start_sect = start;
minor69drivers/block/genhd.chd->part[minor].nr_sects   = size;
minor70drivers/block/genhd.cprint_minor_name(hd, minor);
minor182drivers/block/genhd.cint i, minor = current_minor;
minor266drivers/block/genhd.cfor (i=1 ; i<=4 ; minor++,i++,p++) {
minor269drivers/block/genhd.cadd_partition(hd, minor, first_sector+p->start_sect, p->nr_sects);
minor278drivers/block/genhd.chd->sizes[minor] = hd->part[minor].nr_sects 
minor280drivers/block/genhd.cextended_partition(hd, MKDEV(hd->major, minor));
minor284drivers/block/genhd.cif (hd->part[minor].nr_sects > 2)
minor285drivers/block/genhd.chd->part[minor].nr_sects = 2;
minor1105drivers/block/hd.cint minor = start + i;
minor1106drivers/block/hd.ckdev_t devi = MKDEV(MAJOR_NR, minor);
minor1110drivers/block/hd.cgdev->part[minor].start_sect = 0;
minor1111drivers/block/hd.cgdev->part[minor].nr_sects = 0;
minor1319drivers/block/ide.cunsigned int minor, unit;
minor1327drivers/block/ide.cminor = MINOR(rq->rq_dev);
minor1328drivers/block/ide.cunit = minor >> PARTN_BITS;
minor1343drivers/block/ide.cif ((blockend < block) || (blockend > drive->part[minor&PARTN_MASK].nr_sects)) {
minor1345drivers/block/ide.c(minor&PARTN_MASK)?'0'+(minor&PARTN_MASK):' ', block, rq->nr_sectors);
minor1348drivers/block/ide.cblock += drive->part[minor&PARTN_MASK].start_sect + drive->sect0;
minor1721drivers/block/ide.cunsigned int p, major, minor;
minor1728drivers/block/ide.cminor = drive->select.b.unit << PARTN_BITS;
minor1740drivers/block/ide.ckdev_t devp = MKDEV(major, minor+p);
minor213drivers/block/ll_rw_blk.cint minor,major;
minor216drivers/block/ll_rw_blk.cminor = MINOR(dev);
minor218drivers/block/ll_rw_blk.creturn ro_bits[major][minor >> 5] & (1 << (minor & 31));
minor223drivers/block/ll_rw_blk.cint minor,major;
minor226drivers/block/ll_rw_blk.cminor = MINOR(dev);
minor228drivers/block/ll_rw_blk.cif (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31);
minor229drivers/block/ll_rw_blk.celse ro_bits[major][minor >> 5] &= ~(1 << (minor & 31));
minor315drivers/block/xd.cint minor = (start | partition);
minor316drivers/block/xd.ckdev_t devp = MKDEV(MAJOR_NR, minor);
minor320drivers/block/xd.cxd_gendisk.part[minor].start_sect = 0;
minor321drivers/block/xd.cxd_gendisk.part[minor].nr_sects = 0;
minor163drivers/cdrom/mcdx.cint minor;      /* minor number of this drive */
minor1158drivers/cdrom/mcdx.cstuffp->minor = drive;
minor1496drivers/cdrom/sjcd.cunsigned char major, minor;
minor1586drivers/cdrom/sjcd.c( int )sjcd_version.minor );
minor42drivers/char/lp.c#define LP_READY(minor, status) \
minor43drivers/char/lp.c((LP_F(minor) & LP_CAREFUL) ? _LP_CAREFUL_READY(status) : (status & LP_PBUSY))
minor44drivers/char/lp.c#define LP_CAREFUL_READY(minor, status) \
minor45drivers/char/lp.c((LP_F(minor) & LP_CAREFUL) ? _LP_CAREFUL_READY(status) : 1)
minor58drivers/char/lp.cstatic int lp_reset(int minor)
minor60drivers/char/lp.coutb_p(LP_PSELECP, LP_C(minor));
minor62drivers/char/lp.coutb_p(LP_PSELECP | LP_PINITP, LP_C(minor));
minor63drivers/char/lp.creturn LP_S(minor);
minor66drivers/char/lp.cstatic inline int lp_char_polled(char lpchar, int minor)
minor73drivers/char/lp.cstatus = LP_S(minor);
minor77drivers/char/lp.c} while(!LP_READY(minor,status) && count < LP_CHAR(minor));
minor79drivers/char/lp.cif (count == LP_CHAR(minor)) {
minor83drivers/char/lp.coutb_p(lpchar, LP_B(minor));
minor84drivers/char/lp.cstats = &LP_STAT(minor);
minor88drivers/char/lp.cwhile(wait != LP_WAIT(minor)) wait++;
minor90drivers/char/lp.coutb_p(( LP_PSELECP | LP_PINITP | LP_PSTROBE ), ( LP_C( minor )));
minor93drivers/char/lp.coutb_p(( LP_PSELECP | LP_PINITP ), ( LP_C( minor )));
minor97drivers/char/lp.cprintk(KERN_DEBUG "lp%d success after %d counts.\n",minor,count);
minor110drivers/char/lp.cstatic inline int lp_char_interrupt(char lpchar, int minor)
minor118drivers/char/lp.cif ((status = LP_S(minor)) & LP_PBUSY) {
minor119drivers/char/lp.cif (!LP_CAREFUL_READY(minor, status))
minor121drivers/char/lp.coutb_p(lpchar, LP_B(minor));
minor122drivers/char/lp.cstats = &LP_STAT(minor);
minor127drivers/char/lp.cwhile(wait != LP_WAIT(minor)) wait++;
minor129drivers/char/lp.coutb_p(( LP_PSELECP | LP_PINITP | LP_PSTROBE ), ( LP_C( minor )));
minor132drivers/char/lp.coutb_p(( LP_PSELECP | LP_PINITP ), ( LP_C( minor )));
minor145drivers/char/lp.c} while (count++ < LP_CHAR(minor));
minor162drivers/char/lp.cstatic inline int lp_write_interrupt(unsigned int minor, const char * buf, int count)
minor167drivers/char/lp.cstruct lp_struct *lp = &lp_table[minor];
minor176drivers/char/lp.cif (lp_char_interrupt(lp->lp_buffer[bytes_written], minor)) {
minor179drivers/char/lp.clp_table[minor].runchars++;
minor182drivers/char/lp.cif (lp_table[minor].runchars > LP_STAT(minor).maxrun)
minor183drivers/char/lp.cLP_STAT(minor).maxrun = lp_table[minor].runchars;
minor184drivers/char/lp.cstatus = LP_S(minor);
minor186drivers/char/lp.cprintk(KERN_INFO "lp%d out of paper\n", minor);
minor187drivers/char/lp.cif (LP_F(minor) & LP_ABORT)
minor190drivers/char/lp.cprintk(KERN_INFO "lp%d off-line\n", minor);
minor191drivers/char/lp.cif (LP_F(minor) & LP_ABORT)
minor194drivers/char/lp.cprintk(KERN_ERR "lp%d printer error\n", minor);
minor195drivers/char/lp.cif (LP_F(minor) & LP_ABORT)
minor198drivers/char/lp.cLP_STAT(minor).sleeps++;
minor200drivers/char/lp.coutb_p((LP_PSELECP|LP_PINITP|LP_PINTEN), (LP_C(minor)));
minor201drivers/char/lp.cstatus = LP_S(minor);
minor203drivers/char/lp.c&& LP_CAREFUL_READY(minor, status)) {
minor204drivers/char/lp.coutb_p((LP_PSELECP|LP_PINITP), (LP_C(minor)));
minor208drivers/char/lp.clp_table[minor].runchars=0;
minor211drivers/char/lp.coutb_p((LP_PSELECP|LP_PINITP), (LP_C(minor)));
minor231drivers/char/lp.cstatic inline int lp_write_polled(unsigned int minor, const char * buf, int count)
minor240drivers/char/lp.cretval = lp_char_polled(c, minor);
minor244drivers/char/lp.clp_table[minor].runchars++;
minor246drivers/char/lp.cif (lp_table[minor].runchars > LP_STAT(minor).maxrun)
minor247drivers/char/lp.cLP_STAT(minor).maxrun = lp_table[minor].runchars;
minor248drivers/char/lp.cstatus = LP_S(minor);
minor251drivers/char/lp.cprintk(KERN_INFO "lp%d out of paper\n", minor);
minor252drivers/char/lp.cif(LP_F(minor) & LP_ABORT)
minor259drivers/char/lp.cprintk(KERN_INFO "lp%d off-line\n", minor);
minor260drivers/char/lp.cif(LP_F(minor) & LP_ABORT)
minor268drivers/char/lp.cprintk(KERN_ERR "lp%d reported invalid error status (on fire, eh?)\n", minor);
minor269drivers/char/lp.cif(LP_F(minor) & LP_ABORT)
minor283drivers/char/lp.cLP_STAT(minor).sleeps++;
minor286drivers/char/lp.cminor,lp_table[minor].runchars, LP_TIME(minor));
minor288drivers/char/lp.clp_table[minor].runchars=0;
minor290drivers/char/lp.ccurrent->timeout = jiffies + LP_TIME(minor);
minor299drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor301drivers/char/lp.cif (jiffies-lp_table[minor].lastcall > LP_TIME(minor))
minor302drivers/char/lp.clp_table[minor].runchars = 0;
minor303drivers/char/lp.clp_table[minor].lastcall = jiffies;
minor305drivers/char/lp.cif (LP_IRQ(minor))
minor306drivers/char/lp.creturn lp_write_interrupt(minor, buf, count);
minor308drivers/char/lp.creturn lp_write_polled(minor, buf, count);
minor319drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor323drivers/char/lp.cif (minor >= LP_NO)
minor325drivers/char/lp.cif ((LP_F(minor) & LP_EXIST) == 0)
minor327drivers/char/lp.cif (LP_F(minor) & LP_BUSY)
minor337drivers/char/lp.cif ((LP_F(minor) & LP_ABORTOPEN) && !(file->f_flags & O_NONBLOCK)) {
minor338drivers/char/lp.cint status = LP_S(minor);
minor340drivers/char/lp.cprintk(KERN_INFO "lp%d out of paper\n", minor);
minor344drivers/char/lp.cprintk(KERN_INFO "lp%d off-line\n", minor);
minor348drivers/char/lp.cprintk(KERN_ERR "lp%d printer error\n", minor);
minor354drivers/char/lp.cif ((irq = LP_IRQ(minor))) {
minor355drivers/char/lp.clp_table[minor].lp_buffer = (char *) kmalloc(LP_BUFFER_SIZE, GFP_KERNEL);
minor356drivers/char/lp.cif (!lp_table[minor].lp_buffer) {
minor363drivers/char/lp.ckfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE);
minor364drivers/char/lp.clp_table[minor].lp_buffer = NULL;
minor365drivers/char/lp.cprintk("lp%d unable to use interrupt %d, error %d\n", minor, irq, ret);
minor371drivers/char/lp.cLP_F(minor) |= LP_BUSY;
minor377drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor380drivers/char/lp.cif ((irq = LP_IRQ(minor))) {
minor382drivers/char/lp.ckfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE);
minor383drivers/char/lp.clp_table[minor].lp_buffer = NULL;
minor386drivers/char/lp.cLP_F(minor) &= ~LP_BUSY;
minor394drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor398drivers/char/lp.cprintk(KERN_DEBUG "lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg);
minor400drivers/char/lp.cif (minor >= LP_NO)
minor402drivers/char/lp.cif ((LP_F(minor) & LP_EXIST) == 0)
minor406drivers/char/lp.cLP_TIME(minor) = arg * HZ/100;
minor409drivers/char/lp.cLP_CHAR(minor) = arg;
minor413drivers/char/lp.cLP_F(minor) |= LP_ABORT;
minor415drivers/char/lp.cLP_F(minor) &= ~LP_ABORT;
minor419drivers/char/lp.cLP_F(minor) |= LP_ABORTOPEN;
minor421drivers/char/lp.cLP_F(minor) &= ~LP_ABORTOPEN;
minor425drivers/char/lp.cLP_F(minor) |= LP_CAREFUL;
minor427drivers/char/lp.cLP_F(minor) &= ~LP_CAREFUL;
minor430drivers/char/lp.cLP_WAIT(minor) = arg;
minor435drivers/char/lp.cstruct lp_struct *lp = &lp_table[minor];
minor440drivers/char/lp.coldirq = LP_IRQ(minor);
minor471drivers/char/lp.cLP_IRQ(minor) = newirq;
minor472drivers/char/lp.clp_reset(minor);
minor480drivers/char/lp.cmemcpy_tofs((int *) arg, &LP_IRQ(minor), sizeof(int));
minor488drivers/char/lp.cint status = LP_S(minor);
minor493drivers/char/lp.clp_reset(minor);
minor501drivers/char/lp.cmemcpy_tofs((int *) arg, &LP_STAT(minor), sizeof(struct lp_stats));
minor503drivers/char/lp.cmemset(&LP_STAT(minor), 0, sizeof(struct lp_stats));
minor43drivers/char/mouse.cint minor = MINOR(inode->i_rdev);
minor48drivers/char/mouse.cif (c->minor == minor) {
minor250drivers/char/tty_io.cint  major, minor;
minor253drivers/char/tty_io.cminor = MINOR(device);
minor259drivers/char/tty_io.cif (minor < p->minor_start)
minor261drivers/char/tty_io.cif (minor >= p->minor_start + p->num)
minor1144drivers/char/tty_io.cint minor;
minor1161drivers/char/tty_io.cminor = MINOR(device);
minor1394drivers/scsi/sd.cint minor = start+i;
minor1395drivers/scsi/sd.ckdev_t devi = MKDEV(MAJOR_NR, minor);
minor1399drivers/scsi/sd.cgdev->part[minor].start_sect = 0;
minor1400drivers/scsi/sd.cgdev->part[minor].nr_sects = 0;
minor1405drivers/scsi/sd.cblksize_size[MAJOR_NR][minor] = 1024;
minor1440drivers/scsi/sd.cint minor = start+i;
minor1441drivers/scsi/sd.ckdev_t devi = MKDEV(MAJOR_NR, minor);
minor1445drivers/scsi/sd.csd_gendisk.part[minor].start_sect = 0;
minor1446drivers/scsi/sd.csd_gendisk.part[minor].nr_sects = 0;
minor1447drivers/scsi/sd.csd_sizes[minor] = 0;
minor469include/linux/fs.hextern int floppy_is_wp(int minor);
minor89include/linux/kdev_t.hint major, minor;
minor94include/linux/kdev_t.hminor = (dev & 0xff);
minor96include/linux/kdev_t.hminor = (dev & 0xffff);
minor99include/linux/kdev_t.hminor = (dev & 0xff);
minor101include/linux/kdev_t.hreturn MKDEV(major, minor);
minor80include/linux/lp.h#define LP_B(minor)  lp_table[(minor)].base    /* IO address */
minor81include/linux/lp.h#define LP_F(minor)  lp_table[(minor)].flags    /* flags for busy, etc. */
minor82include/linux/lp.h#define LP_S(minor)  inb_p(LP_B((minor)) + 1)  /* status port */
minor83include/linux/lp.h#define LP_C(minor)  (lp_table[(minor)].base + 2)  /* control port */
minor84include/linux/lp.h#define LP_CHAR(minor)  lp_table[(minor)].chars    /* busy timeout */
minor85include/linux/lp.h#define LP_TIME(minor)  lp_table[(minor)].time    /* wait time */
minor86include/linux/lp.h#define LP_WAIT(minor)  lp_table[(minor)].wait    /* strobe wait */
minor87include/linux/lp.h#define LP_IRQ(minor)  lp_table[(minor)].irq    /* interrupt # */
minor89include/linux/lp.h#define LP_STAT(minor)  lp_table[(minor)].stats    /* statistics area */
minor12include/linux/mouse.hint minor;
minor72net/netlink.cunsigned int minor = MINOR(inode->i_rdev);
minor76net/netlink.creturn (netlink_handler[minor])(skb);
minor85net/netlink.cunsigned int minor = MINOR(inode->i_rdev);
minor88net/netlink.cwhile((skb=skb_dequeue(&skb_queue_rd[minor]))==NULL)
minor95net/netlink.cinterruptible_sleep_on(&read_space_wait[minor]);
minor102net/netlink.crdq_size[minor]-=skb->len;
minor119net/netlink.cunsigned int minor = MINOR(inode->i_rdev);
minor121net/netlink.cif(minor>=MAX_LINKS)
minor123net/netlink.cif(open_map&(1<<minor))
minor125net/netlink.cif(active_map&(1<<minor))
minor127net/netlink.copen_map|=(1<<minor);
minor136net/netlink.cunsigned int minor = MINOR(inode->i_rdev);
minor137net/netlink.copen_map&=~(1<<minor);  
minor145net/netlink.cunsigned int minor = MINOR(inode->i_rdev);
minor148net/netlink.cif (minor >= MAX_LINKS)