taglinefilesource code
minor116arch/i386/boot/tools/build.cminor_root = minor(sb.st_dev);
minor123arch/i386/boot/tools/build.cminor_root = minor(sb.st_rdev);
minor36arch/m68k/amiga/amipart.cint i, minor = current_minor, m_lim = current_minor + hd->max_p;
minor71arch/m68k/amiga/amipart.cprintk("  %s%c:", hd->major_name, 'a'+(minor >> hd->minor_shift));
minor76arch/m68k/amiga/amipart.cfor (i = 1; minor < m_lim && partsect != 0xffffffff; minor++, i++)
minor105arch/m68k/amiga/amipart.chd->part[minor].start_sect = env[DE_LOWCYL]
minor107arch/m68k/amiga/amipart.chd->part[minor].nr_sects = (env[DE_UPPERCYL]
minor112arch/m68k/amiga/amipart.c'a'+(minor >> hd->minor_shift), i);
minor35arch/m68k/atari/atapart.cint i, minor = current_minor, m_lim = current_minor + hd->max_p;
minor52arch/m68k/atari/atapart.cprintk ("  %s%c:", hd->major_name, 'a' + (minor >> hd->minor_shift));
minor55arch/m68k/atari/atapart.cfor (i = 1; pi < &rs->part[4] && minor < m_lim; i++, minor++, pi++)
minor90arch/m68k/atari/atapart.chd->part[minor].start_sect = partsect + xrs->part[0].st;
minor91arch/m68k/atari/atapart.chd->part[minor].nr_sects = xrs->part[0].siz;
minor93arch/m68k/atari/atapart.c'a' + (minor >> hd->minor_shift), i);
minor109arch/m68k/atari/atapart.cminor++;
minor110arch/m68k/atari/atapart.cif (minor >= m_lim) {
minor119arch/m68k/atari/atapart.chd->part[minor].start_sect = pi->st;
minor120arch/m68k/atari/atapart.chd->part[minor].nr_sects = pi->siz;
minor122arch/m68k/atari/atapart.c'a' + (minor >> hd->minor_shift), i);
minor136arch/m68k/atari/atapart.cfor (i = 1; pi < &rs->icdpart[8] && minor < m_lim; i++, minor++, pi++)
minor145arch/m68k/atari/atapart.chd->part[minor].start_sect = pi->st;
minor146arch/m68k/atari/atapart.chd->part[minor].nr_sects = pi->siz;
minor148arch/m68k/atari/atapart.c'a' + (minor >> hd->minor_shift), i);
minor59arch/m68k/atari/joystick.cint minor = DEVICE_NR(inode->i_rdev);
minor61arch/m68k/atari/joystick.cjoystick[minor].active = 0;
minor62arch/m68k/atari/joystick.cjoystick[minor].ready = 0;
minor70arch/m68k/atari/joystick.cint minor = DEVICE_NR(inode->i_rdev);
minor72arch/m68k/atari/joystick.cif (!DIGITAL_JOY(inode->i_rdev) || minor > 1)
minor74arch/m68k/atari/joystick.cif (joystick[minor].active)
minor76arch/m68k/atari/joystick.cjoystick[minor].active = 1;
minor77arch/m68k/atari/joystick.cjoystick[minor].ready = 0;
minor91arch/m68k/atari/joystick.cint minor = DEVICE_NR(inode->i_rdev);
minor96arch/m68k/atari/joystick.cif (!joystick[minor].ready)
minor98arch/m68k/atari/joystick.cput_user(joystick[minor].fire, buffer++);
minor99arch/m68k/atari/joystick.cput_user(joystick[minor].dir, buffer++);
minor102arch/m68k/atari/joystick.cjoystick[minor].ready = 0;
minor109arch/m68k/atari/joystick.cint minor = DEVICE_NR(inode->i_rdev);
minor113arch/m68k/atari/joystick.cif (joystick[minor].ready)
minor115arch/m68k/atari/joystick.cselect_wait(&joystick[minor].wait, wait);
minor67drivers/block/genhd.cchar *disk_name (struct gendisk *hd, int minor, char *buf)
minor71drivers/block/genhd.cchar unit = (minor >> hd->minor_shift) + 'a';
minor90drivers/block/genhd.cpart = minor & ((1 << hd->minor_shift) - 1);
minor98drivers/block/genhd.cstatic void add_partition (struct gendisk *hd, int minor, int start, int size)
minor101drivers/block/genhd.chd->part[minor].start_sect = start;
minor102drivers/block/genhd.chd->part[minor].nr_sects   = size;
minor103drivers/block/genhd.cprintk(" %s", disk_name(hd, minor, buf));
minor213drivers/block/genhd.cint i, minor = current_minor;
minor311drivers/block/genhd.cfor (i=1 ; i<=4 ; minor++,i++,p++) {
minor314drivers/block/genhd.cadd_partition(hd, minor, first_sector+START_SECT(p), NR_SECTS(p));
minor323drivers/block/genhd.chd->sizes[minor] = hd->part[minor].nr_sects 
minor325drivers/block/genhd.cextended_partition(hd, MKDEV(hd->major, minor));
minor329drivers/block/genhd.cif (hd->part[minor].nr_sects > 2)
minor330drivers/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;
minor1159drivers/block/ide-cd.cint minor = MINOR (rq->rq_dev);
minor1163drivers/block/ide-cd.cif ((minor & PARTN_MASK) != 0) {
minor1165drivers/block/ide-cd.cminor &= ~PARTN_MASK;
minor1166drivers/block/ide-cd.crq->rq_dev = MKDEV (MAJOR(rq->rq_dev), minor);
minor598drivers/block/ide-tape.cint major,minor;
minor1167drivers/block/ide-tape.cidetape_chrdev.minor=0;
minor1188drivers/block/ide-tape.cint major,minor;
minor1196drivers/block/ide-tape.cminor=idetape_chrdev.minor;
minor4096drivers/block/ide-tape.cunsigned int minor=MINOR (inode->i_rdev),allocation_length;
minor4104drivers/block/ide-tape.cif (minor!=0 && minor!=128) {    /* Currently supporting only one */
minor4157drivers/block/ide-tape.cunsigned int minor=MINOR (inode->i_rdev);
minor4173drivers/block/ide-tape.cif (minor < 128)
minor4179drivers/block/ide-tape.cif (minor < 128)
minor1367drivers/block/ide.cunsigned int minor, unit;
minor1375drivers/block/ide.cminor = MINOR(rq->rq_dev);
minor1376drivers/block/ide.cunit = minor >> PARTN_BITS;
minor1391drivers/block/ide.cif ((blockend < block) || (blockend > drive->part[minor&PARTN_MASK].nr_sects)) {
minor1393drivers/block/ide.c(minor&PARTN_MASK)?'0'+(minor&PARTN_MASK):' ', block, rq->nr_sectors);
minor1396drivers/block/ide.cblock += drive->part[minor&PARTN_MASK].start_sect + drive->sect0;
minor1856drivers/block/ide.cunsigned int p, major, minor;
minor1863drivers/block/ide.cminor = drive->select.b.unit << PARTN_BITS;
minor1875drivers/block/ide.ckdev_t devp = MKDEV(major, minor+p);
minor30drivers/block/linear.cstatic int linear_run (int minor, struct md_dev *mddev)
minor46drivers/block/linear.cdata->smallest=devices[minor];
minor48drivers/block/linear.cif (data->smallest->size > devices[minor][i].size)
minor49drivers/block/linear.cdata->smallest=devices[minor]+i;
minor52drivers/block/linear.cmd_size[minor]/data->smallest->size +
minor53drivers/block/linear.c(md_size[minor]%data->smallest->size ? 1 : 0);
minor57drivers/block/linear.csize=devices[minor][cur].size;
minor62drivers/block/linear.cdata->hash_table[i].dev0=devices[minor]+cur;
minor72drivers/block/linear.csize=devices[minor][cur].size;
minor85drivers/block/linear.csize=devices[minor][cur].size;
minor86drivers/block/linear.cdata->hash_table[i++].dev1=devices[minor]+cur;
minor93drivers/block/linear.cstatic int linear_stop (int minor, struct md_dev *mddev)
minor139drivers/block/linear.cstatic int linear_status (char *page, int minor, struct md_dev *mddev)
minor190drivers/block/ll_rw_blk.cint minor,major;
minor193drivers/block/ll_rw_blk.cminor = MINOR(dev);
minor195drivers/block/ll_rw_blk.creturn ro_bits[major][minor >> 5] & (1 << (minor & 31));
minor200drivers/block/ll_rw_blk.cint minor,major;
minor203drivers/block/ll_rw_blk.cminor = MINOR(dev);
minor205drivers/block/ll_rw_blk.cif (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31);
minor206drivers/block/ll_rw_blk.celse ro_bits[major][minor >> 5] &= ~(1 << (minor & 31));
minor126drivers/block/md.cint minor, index, err, current_ra;
minor134drivers/block/md.cif (((minor=MINOR(inode->i_rdev)) & 0x80) &&
minor135drivers/block/md.c(minor & 0x7f) < MAX_PERSONALITY &&
minor136drivers/block/md.cpers[minor & 0x7f] &&
minor137drivers/block/md.cpers[minor & 0x7f]->ioctl)
minor138drivers/block/md.creturn (pers[minor & 0x7f]->ioctl (inode, file, cmd, arg));
minor140drivers/block/md.cif (minor >= MAX_MD_DEV)
minor147drivers/block/md.cif (MAJOR(dev)==MD_MAJOR || md_dev[minor].nb_dev==MAX_REAL)
minor150drivers/block/md.cif (!fs_may_mount (dev) || md_dev[minor].pers)
minor156drivers/block/md.cindex=md_dev[minor].nb_dev++;
minor157drivers/block/md.cdevices[minor][index].dev=dev;
minor164drivers/block/md.cdevices[minor][index].inode=get_empty_inode ();
minor165drivers/block/md.cdevices[minor][index].inode->i_dev=dev; /* don't care about
minor167drivers/block/md.cinsert_inode_hash (devices[minor][index].inode);
minor173drivers/block/md.cdevices[minor][index].size=gen_real->sizes[MINOR(dev)] & ~((PAGE_SIZE >> 10)-1);
minor174drivers/block/md.cdevices[minor][index].offset=index ?
minor175drivers/block/md.c(devices[minor][index-1].offset + devices[minor][index-1].size) : 0;
minor178drivers/block/md.cmd_size[minor]=devices[minor][index].size;
minor180drivers/block/md.cmd_size[minor]+=devices[minor][index].size;
minor182drivers/block/md.cprintk("REGISTER_DEV %s to md%x done\n", partition_name(dev), minor);
minor186drivers/block/md.cif (!md_dev[minor].nb_dev)
minor189drivers/block/md.cif (md_dev[minor].pers)
minor192drivers/block/md.cmd_dev[minor].repartition=(int) arg;
minor194drivers/block/md.cif ((index=PERSONALITY(md_dev+minor) >> (PERSONALITY_SHIFT))
minor209drivers/block/md.cmd_dev[minor].pers=pers[index];
minor211drivers/block/md.cif ((err=md_dev[minor].pers->run (minor, md_dev+minor)))
minor213drivers/block/md.cmd_dev[minor].pers=NULL;
minor220drivers/block/md.cmd_hd_struct[minor].start_sect=0;
minor221drivers/block/md.cmd_hd_struct[minor].nr_sects=md_size[minor]<<1;
minor228drivers/block/md.cfor (index=0; index<md_dev[minor].nb_dev; index++)
minor230drivers/block/md.cif (current_ra>read_ahead[MAJOR(devices[minor][index].dev)])
minor231drivers/block/md.ccurrent_ra=read_ahead[MAJOR(devices[minor][index].dev)];
minor233drivers/block/md.cdevices[minor][index].fault_count=0;
minor234drivers/block/md.cdevices[minor][index].invalid=VALID;
minor239drivers/block/md.cprintk ("START_DEV md%x %s\n", minor, md_dev[minor].pers->name);
minor243drivers/block/md.cif (inode->i_count>1 || md_dev[minor].busy>1) /* ioctl : one open channel */
minor245drivers/block/md.cprintk ("STOP_MD md%x failed : i_count=%d, busy=%d\n", minor, inode->i_count, md_dev[minor].busy);
minor249drivers/block/md.cif (md_dev[minor].pers)
minor254drivers/block/md.cmd_dev[minor].pers->stop (minor, md_dev+minor);
minor258drivers/block/md.cfor (index=0; index<md_dev[minor].nb_dev; index++)
minor259drivers/block/md.cclear_inode (devices[minor][index].inode);
minor261drivers/block/md.cmd_dev[minor].nb_dev=md_size[minor]=0;
minor262drivers/block/md.cmd_dev[minor].pers=NULL;
minor266drivers/block/md.cprintk ("STOP_DEV md%x\n", minor);
minor272drivers/block/md.cif (!(err=md_valid_device (minor, dev, INVALID_ALWAYS)))
minor273drivers/block/md.cprintk ("md%d : %s disabled\n", minor, partition_name (dev));
minor279drivers/block/md.cif (!(err=md_valid_device (minor, dev, VALID)))
minor280drivers/block/md.cprintk ("md%d : %s enabled\n", minor, partition_name (dev));
minor319drivers/block/md.cput_user (md_hd_struct[minor].nr_sects/8, (short *) &loc->cylinders);
minor337drivers/block/md.cint minor=MINOR(inode->i_rdev);
minor339drivers/block/md.cmd_dev[minor].busy++;
minor346drivers/block/md.cint minor=MINOR(inode->i_rdev);
minor349drivers/block/md.cmd_dev[minor].busy--;
minor367drivers/block/md.cint md_map (int minor, kdev_t *rdev, unsigned long *rsector, unsigned long size)
minor369drivers/block/md.cif ((unsigned int) minor >= MAX_MD_DEV)
minor371drivers/block/md.cprintk ("Bad md device %d\n", minor);
minor375drivers/block/md.cif (!md_dev[minor].pers)
minor377drivers/block/md.cprintk ("Oops ! md%d not running, giving up !\n", minor);
minor381drivers/block/md.creturn (md_dev[minor].pers->map(md_dev+minor, rdev, rsector, size));
minor29drivers/block/raid0.cstatic void create_strip_zones (int minor, struct md_dev *mddev)
minor41drivers/block/raid0.cif (devices[minor][i].size==devices[minor][j].size)
minor65drivers/block/raid0.cif (devices[minor][j].size>current_offset)
minor67drivers/block/raid0.cdata->strip_zone[i].dev[c++]=devices[minor]+j;
minor69drivers/block/raid0.csmallest_by_zone->size > devices[minor][j].size)
minor70drivers/block/raid0.csmallest_by_zone=devices[minor]+j;
minor86drivers/block/raid0.cstatic int raid0_run (int minor, struct md_dev *mddev)
minor94drivers/block/raid0.cif (devices[minor][i].size<min)
minor97drivers/block/raid0.cpartition_name (devices[minor][i].dev));
minor104drivers/block/raid0.cmd_size[minor]=0;
minor108drivers/block/raid0.cdevices[minor][i].size &= ~((1 << FACTOR_SHIFT(FACTOR(mddev))) - 1);
minor109drivers/block/raid0.cmd_size[minor] += devices[minor][i].size;
minor115drivers/block/raid0.ccreate_strip_zones (minor, mddev);
minor118drivers/block/raid0.cmd_size[minor]/data->smallest->size +
minor119drivers/block/raid0.c(md_size[minor]%data->smallest->size ? 1 : 0);
minor160drivers/block/raid0.cstatic int raid0_stop (int minor, struct md_dev *mddev)
minor227drivers/block/raid0.cstatic int raid0_status (char *page, int minor, struct md_dev *mddev)
minor109drivers/block/rd.cunsigned int minor;
minor115drivers/block/rd.cminor = MINOR(CURRENT->rq_dev);
minor117drivers/block/rd.cif (minor >= NUM_RAMDISKS) {
minor125drivers/block/rd.cif ((offset + len) > rd_length[minor]) {
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;
minor170drivers/cdrom/mcdx.cint minor;      /* minor number of this drive */
minor1251drivers/cdrom/mcdx.cstuffp->minor = drive;
minor1440drivers/cdrom/sjcd.cunsigned char major, minor;
minor1517drivers/cdrom/sjcd.c( int )sjcd_version.minor );
minor43drivers/char/lp.c#define LP_READY(minor, status) \
minor44drivers/char/lp.c((LP_F(minor) & LP_CAREFUL) ? _LP_CAREFUL_READY(status) : (status & LP_PBUSY))
minor45drivers/char/lp.c#define LP_CAREFUL_READY(minor, status) \
minor46drivers/char/lp.c((LP_F(minor) & LP_CAREFUL) ? _LP_CAREFUL_READY(status) : 1)
minor59drivers/char/lp.cstatic int lp_reset(int minor)
minor61drivers/char/lp.coutb_p(LP_PSELECP, LP_C(minor));
minor63drivers/char/lp.coutb_p(LP_PSELECP | LP_PINITP, LP_C(minor));
minor64drivers/char/lp.creturn LP_S(minor);
minor67drivers/char/lp.cstatic inline int lp_char_polled(char lpchar, int minor)
minor74drivers/char/lp.cstatus = LP_S(minor);
minor78drivers/char/lp.c} while(!LP_READY(minor,status) && count < LP_CHAR(minor));
minor80drivers/char/lp.cif (count == LP_CHAR(minor)) {
minor84drivers/char/lp.coutb_p(lpchar, LP_B(minor));
minor85drivers/char/lp.cstats = &LP_STAT(minor);
minor89drivers/char/lp.cwhile(wait != LP_WAIT(minor)) wait++;
minor91drivers/char/lp.coutb_p(( LP_PSELECP | LP_PINITP | LP_PSTROBE ), ( LP_C( minor )));
minor94drivers/char/lp.coutb_p(( LP_PSELECP | LP_PINITP ), ( LP_C( minor )));
minor98drivers/char/lp.cprintk(KERN_DEBUG "lp%d success after %d counts.\n",minor,count);
minor111drivers/char/lp.cstatic inline int lp_char_interrupt(char lpchar, int minor)
minor119drivers/char/lp.cif ((status = LP_S(minor)) & LP_PBUSY) {
minor120drivers/char/lp.cif (!LP_CAREFUL_READY(minor, status))
minor122drivers/char/lp.coutb_p(lpchar, LP_B(minor));
minor123drivers/char/lp.cstats = &LP_STAT(minor);
minor128drivers/char/lp.cwhile(wait != LP_WAIT(minor)) wait++;
minor130drivers/char/lp.coutb_p(( LP_PSELECP | LP_PINITP | LP_PSTROBE ), ( LP_C( minor )));
minor133drivers/char/lp.coutb_p(( LP_PSELECP | LP_PINITP ), ( LP_C( minor )));
minor146drivers/char/lp.c} while (count++ < LP_CHAR(minor));
minor163drivers/char/lp.cstatic inline int lp_write_interrupt(unsigned int minor, const char * buf, int count)
minor168drivers/char/lp.cstruct lp_struct *lp = &lp_table[minor];
minor177drivers/char/lp.cif (lp_char_interrupt(lp->lp_buffer[bytes_written], minor)) {
minor180drivers/char/lp.clp_table[minor].runchars++;
minor183drivers/char/lp.cif (lp_table[minor].runchars > LP_STAT(minor).maxrun)
minor184drivers/char/lp.cLP_STAT(minor).maxrun = lp_table[minor].runchars;
minor185drivers/char/lp.cstatus = LP_S(minor);
minor187drivers/char/lp.cprintk(KERN_INFO "lp%d out of paper\n", minor);
minor188drivers/char/lp.cif (LP_F(minor) & LP_ABORT)
minor191drivers/char/lp.cprintk(KERN_INFO "lp%d off-line\n", minor);
minor192drivers/char/lp.cif (LP_F(minor) & LP_ABORT)
minor195drivers/char/lp.cprintk(KERN_ERR "lp%d printer error\n", minor);
minor196drivers/char/lp.cif (LP_F(minor) & LP_ABORT)
minor199drivers/char/lp.cLP_STAT(minor).sleeps++;
minor201drivers/char/lp.coutb_p((LP_PSELECP|LP_PINITP|LP_PINTEN), (LP_C(minor)));
minor202drivers/char/lp.cstatus = LP_S(minor);
minor204drivers/char/lp.c&& LP_CAREFUL_READY(minor, status)) {
minor205drivers/char/lp.coutb_p((LP_PSELECP|LP_PINITP), (LP_C(minor)));
minor209drivers/char/lp.clp_table[minor].runchars=0;
minor212drivers/char/lp.coutb_p((LP_PSELECP|LP_PINITP), (LP_C(minor)));
minor232drivers/char/lp.cstatic inline int lp_write_polled(unsigned int minor, const char * buf, int count)
minor241drivers/char/lp.cretval = lp_char_polled(c, minor);
minor245drivers/char/lp.clp_table[minor].runchars++;
minor247drivers/char/lp.cif (lp_table[minor].runchars > LP_STAT(minor).maxrun)
minor248drivers/char/lp.cLP_STAT(minor).maxrun = lp_table[minor].runchars;
minor249drivers/char/lp.cstatus = LP_S(minor);
minor252drivers/char/lp.cprintk(KERN_INFO "lp%d out of paper\n", minor);
minor253drivers/char/lp.cif(LP_F(minor) & LP_ABORT)
minor260drivers/char/lp.cprintk(KERN_INFO "lp%d off-line\n", minor);
minor261drivers/char/lp.cif(LP_F(minor) & LP_ABORT)
minor269drivers/char/lp.cprintk(KERN_ERR "lp%d reported invalid error status (on fire, eh?)\n", minor);
minor270drivers/char/lp.cif(LP_F(minor) & LP_ABORT)
minor284drivers/char/lp.cLP_STAT(minor).sleeps++;
minor287drivers/char/lp.cminor,lp_table[minor].runchars, LP_TIME(minor));
minor289drivers/char/lp.clp_table[minor].runchars=0;
minor291drivers/char/lp.ccurrent->timeout = jiffies + LP_TIME(minor);
minor300drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor302drivers/char/lp.cif (jiffies-lp_table[minor].lastcall > LP_TIME(minor))
minor303drivers/char/lp.clp_table[minor].runchars = 0;
minor304drivers/char/lp.clp_table[minor].lastcall = jiffies;
minor306drivers/char/lp.cif (LP_IRQ(minor))
minor307drivers/char/lp.creturn lp_write_interrupt(minor, buf, count);
minor309drivers/char/lp.creturn lp_write_polled(minor, buf, count);
minor320drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor324drivers/char/lp.cif (minor >= LP_NO)
minor326drivers/char/lp.cif ((LP_F(minor) & LP_EXIST) == 0)
minor328drivers/char/lp.cif (LP_F(minor) & LP_BUSY)
minor338drivers/char/lp.cif ((LP_F(minor) & LP_ABORTOPEN) && !(file->f_flags & O_NONBLOCK)) {
minor339drivers/char/lp.cint status = LP_S(minor);
minor341drivers/char/lp.cprintk(KERN_INFO "lp%d out of paper\n", minor);
minor345drivers/char/lp.cprintk(KERN_INFO "lp%d off-line\n", minor);
minor349drivers/char/lp.cprintk(KERN_ERR "lp%d printer error\n", minor);
minor355drivers/char/lp.cif ((irq = LP_IRQ(minor))) {
minor356drivers/char/lp.clp_table[minor].lp_buffer = (char *) kmalloc(LP_BUFFER_SIZE, GFP_KERNEL);
minor357drivers/char/lp.cif (!lp_table[minor].lp_buffer) {
minor364drivers/char/lp.ckfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE);
minor365drivers/char/lp.clp_table[minor].lp_buffer = NULL;
minor366drivers/char/lp.cprintk("lp%d unable to use interrupt %d, error %d\n", minor, irq, ret);
minor372drivers/char/lp.cLP_F(minor) |= LP_BUSY;
minor378drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor381drivers/char/lp.cif ((irq = LP_IRQ(minor))) {
minor383drivers/char/lp.ckfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE);
minor384drivers/char/lp.clp_table[minor].lp_buffer = NULL;
minor387drivers/char/lp.cLP_F(minor) &= ~LP_BUSY;
minor395drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor399drivers/char/lp.cprintk(KERN_DEBUG "lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg);
minor401drivers/char/lp.cif (minor >= LP_NO)
minor403drivers/char/lp.cif ((LP_F(minor) & LP_EXIST) == 0)
minor407drivers/char/lp.cLP_TIME(minor) = arg * HZ/100;
minor410drivers/char/lp.cLP_CHAR(minor) = arg;
minor414drivers/char/lp.cLP_F(minor) |= LP_ABORT;
minor416drivers/char/lp.cLP_F(minor) &= ~LP_ABORT;
minor420drivers/char/lp.cLP_F(minor) |= LP_ABORTOPEN;
minor422drivers/char/lp.cLP_F(minor) &= ~LP_ABORTOPEN;
minor426drivers/char/lp.cLP_F(minor) |= LP_CAREFUL;
minor428drivers/char/lp.cLP_F(minor) &= ~LP_CAREFUL;
minor431drivers/char/lp.cLP_WAIT(minor) = arg;
minor436drivers/char/lp.cstruct lp_struct *lp = &lp_table[minor];
minor441drivers/char/lp.coldirq = LP_IRQ(minor);
minor472drivers/char/lp.cLP_IRQ(minor) = newirq;
minor473drivers/char/lp.clp_reset(minor);
minor481drivers/char/lp.cmemcpy_tofs((int *) arg, &LP_IRQ(minor), sizeof(int));
minor489drivers/char/lp.cint status = LP_S(minor);
minor494drivers/char/lp.clp_reset(minor);
minor502drivers/char/lp.cmemcpy_tofs((int *) arg, &LP_STAT(minor), sizeof(struct lp_stats));
minor504drivers/char/lp.cmemset(&LP_STAT(minor), 0, sizeof(struct lp_stats));
minor513drivers/char/lp.cint status = LP_F(minor);
minor386drivers/char/lp_m68k.cunsigned int minor = MINOR(inode->i_rdev);
minor390drivers/char/lp_m68k.cprintk("lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg);
minor392drivers/char/lp_m68k.cif (minor >= max_lp)
minor394drivers/char/lp_m68k.cif (!(lp_table[minor].flags & LP_EXIST))
minor398drivers/char/lp_m68k.clp_table[minor].time = arg;
minor401drivers/char/lp_m68k.clp_table[minor].chars = arg;
minor405drivers/char/lp_m68k.clp_table[minor].flags |= LP_ABORT;
minor407drivers/char/lp_m68k.clp_table[minor].flags &= ~LP_ABORT;
minor410drivers/char/lp_m68k.clp_table[minor].wait = arg;
minor78drivers/char/misc.clen += sprintf(buf+len, "%3i %s\n",p->minor, p->name ?: "");
minor87drivers/char/misc.cint minor = MINOR(inode->i_rdev);
minor91drivers/char/misc.cwhile ((c != &misc_list) && (c->minor != minor))
minor96drivers/char/misc.csprintf(modname, "char-major-%d-%d", MISC_MAJOR, minor);
minor99drivers/char/misc.cwhile ((c != &misc_list) && (c->minor != minor))
minor128drivers/char/misc.cif (misc->minor == MISC_DYNAMIC_MINOR) {
minor134drivers/char/misc.cmisc->minor = i;
minor136drivers/char/misc.cif (misc->minor < DYNAMIC_MINORS)
minor137drivers/char/misc.cmisc_minors[misc->minor >> 3] |= 1 << (misc->minor & 7);
minor148drivers/char/misc.cint i = misc->minor;
minor157drivers/char/misc.cmisc_minors[i>>3] &= ~(1 << (misc->minor & 7));
minor536drivers/char/suncons.cint minor = MINOR (inode->i_rdev);
minor538drivers/char/suncons.cif (minor >= FRAME_BUFFERS)
minor540drivers/char/suncons.cif (fbinfo [minor].open)
minor542drivers/char/suncons.cfbinfo [minor].open = 1;
minor543drivers/char/suncons.cfbinfo [minor].mmaped = 0;
minor550drivers/char/suncons.cint minor = MINOR (inode->i_rdev);
minor555drivers/char/suncons.cif (minor >= FRAME_BUFFERS)
minor557drivers/char/suncons.cfb = &fbinfo [minor];
minor648drivers/char/suncons.cint minor = MINOR(inode->i_rdev);
minor651drivers/char/suncons.cif (minor >= FRAME_BUFFERS)
minor653drivers/char/suncons.cif (fbinfo [minor].open)
minor654drivers/char/suncons.cfbinfo [minor].open = 0;
minor655drivers/char/suncons.cvt_cons [fbinfo [minor].vtconsole]->vc_mode = KD_TEXT;
minor659drivers/char/suncons.cif (fbinfo [minor].mmaped)
minor672drivers/char/suncons.cint minor = MINOR (inode->i_rdev);
minor675drivers/char/suncons.cif (minor >= FRAME_BUFFERS)
minor682drivers/char/suncons.cfbinfo [minor].vtconsole = fg_console;
minor683drivers/char/suncons.cfb = &fbinfo [minor];
minor690drivers/char/suncons.cfbinfo [minor].mmaped = 1;
minor274drivers/char/tty_io.cint  major, minor;
minor277drivers/char/tty_io.cminor = MINOR(device);
minor283drivers/char/tty_io.cif (minor < p->minor_start)
minor285drivers/char/tty_io.cif (minor >= p->minor_start + p->num)
minor1168drivers/char/tty_io.cint minor;
minor1185drivers/char/tty_io.cminor = MINOR(device);
minor662drivers/isdn/isdn_common.cstatic __inline int isdn_minor2drv(int minor)
minor664drivers/isdn/isdn_common.creturn (dev->drvmap[minor]);
minor667drivers/isdn/isdn_common.cstatic __inline int isdn_minor2chan(int minor)
minor669drivers/isdn/isdn_common.creturn (dev->chanmap[minor]);
minor739drivers/isdn/isdn_common.cuint minor = MINOR(inode->i_rdev);
minor745drivers/isdn/isdn_common.cif (minor == ISDN_MINOR_STATUS) {
minor765drivers/isdn/isdn_common.cif (minor < ISDN_MINOR_CTRL) {
minor766drivers/isdn/isdn_common.cdrvidx = isdn_minor2drv(minor);
minor771drivers/isdn/isdn_common.cchidx = isdn_minor2chan(minor);
minor776drivers/isdn/isdn_common.cif (minor <= ISDN_MINOR_CTRLMAX) {
minor777drivers/isdn/isdn_common.cdrvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL);
minor801drivers/isdn/isdn_common.cif (minor <= ISDN_MINOR_PPPMAX)
minor802drivers/isdn/isdn_common.creturn (isdn_ppp_read(minor - ISDN_MINOR_PPP, file, buf, count));
minor814drivers/isdn/isdn_common.cuint minor = MINOR(inode->i_rdev);
minor818drivers/isdn/isdn_common.cif (minor == ISDN_MINOR_STATUS)
minor822drivers/isdn/isdn_common.cif (minor < ISDN_MINOR_CTRL) {
minor823drivers/isdn/isdn_common.cdrvidx = isdn_minor2drv(minor);
minor828drivers/isdn/isdn_common.cchidx = isdn_minor2chan(minor);
minor829drivers/isdn/isdn_common.cdev->obytes[minor] += count;
minor834drivers/isdn/isdn_common.cif (minor <= ISDN_MINOR_CTRLMAX) {
minor835drivers/isdn/isdn_common.cdrvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL);
minor850drivers/isdn/isdn_common.cif (minor <= ISDN_MINOR_PPPMAX)
minor851drivers/isdn/isdn_common.creturn (isdn_ppp_write(minor - ISDN_MINOR_PPP, file, buf, count));
minor858drivers/isdn/isdn_common.cuint minor = MINOR(inode->i_rdev);
minor860drivers/isdn/isdn_common.cif (minor == ISDN_MINOR_STATUS) {
minor869drivers/isdn/isdn_common.cif (minor <= ISDN_MINOR_CTRLMAX)
minor872drivers/isdn/isdn_common.cif (minor <= ISDN_MINOR_PPPMAX)
minor873drivers/isdn/isdn_common.creturn (isdn_ppp_select(minor - ISDN_MINOR_PPP, file, type, st));
minor1023drivers/isdn/isdn_common.cuint minor = MINOR(inode->i_rdev);
minor1035drivers/isdn/isdn_common.cif (minor == ISDN_MINOR_STATUS) {
minor1058drivers/isdn/isdn_common.cif (minor < ISDN_MINOR_CTRL) {
minor1059drivers/isdn/isdn_common.cdrvidx = isdn_minor2drv(minor);
minor1062drivers/isdn/isdn_common.cchidx = isdn_minor2chan(minor);
minor1067drivers/isdn/isdn_common.cif (minor <= ISDN_MINOR_CTRLMAX) {
minor1393drivers/isdn/isdn_common.cif (minor <= ISDN_MINOR_PPPMAX)
minor1394drivers/isdn/isdn_common.creturn (isdn_ppp_ioctl(minor - ISDN_MINOR_PPP, file, cmd, arg));
minor1406drivers/isdn/isdn_common.cuint minor = MINOR(ino->i_rdev);
minor1411drivers/isdn/isdn_common.cif (minor == ISDN_MINOR_STATUS) {
minor1426drivers/isdn/isdn_common.cif (minor < ISDN_MINOR_CTRL) {
minor1427drivers/isdn/isdn_common.cdrvidx = isdn_minor2drv(minor);
minor1430drivers/isdn/isdn_common.cchidx = isdn_minor2chan(minor);
minor1441drivers/isdn/isdn_common.cif (minor <= ISDN_MINOR_CTRLMAX) {
minor1442drivers/isdn/isdn_common.cdrvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL);
minor1452drivers/isdn/isdn_common.cif (minor <= ISDN_MINOR_PPPMAX) {
minor1454drivers/isdn/isdn_common.cif (!(ret = isdn_ppp_open(minor - ISDN_MINOR_PPP, filep)))
minor1464drivers/isdn/isdn_common.cuint minor = MINOR(ino->i_rdev);
minor1468drivers/isdn/isdn_common.cif (minor == ISDN_MINOR_STATUS) {
minor1489drivers/isdn/isdn_common.cif (minor < ISDN_MINOR_CTRL) {
minor1490drivers/isdn/isdn_common.cdrvidx = isdn_minor2drv(minor);
minor1498drivers/isdn/isdn_common.cif (minor <= ISDN_MINOR_CTRLMAX) {
minor1499drivers/isdn/isdn_common.cdrvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL);
minor1510drivers/isdn/isdn_common.cif (minor <= ISDN_MINOR_PPPMAX)
minor1511drivers/isdn/isdn_common.cisdn_ppp_release(minor - ISDN_MINOR_PPP, filep);
minor61drivers/isdn/isdn_ppp.cstatic int isdn_ppp_fill_rq(char *buf, int len, int minor);
minor166drivers/isdn/isdn_ppp.cstatic int isdn_ppp_hangup(int minor)
minor168drivers/isdn/isdn_ppp.cif (minor < 0 || minor >= ISDN_MAX_CHANNELS)
minor171drivers/isdn/isdn_ppp.cif (ippp_table[minor]->state && ippp_table[minor]->wq)
minor172drivers/isdn/isdn_ppp.cwake_up_interruptible(&ippp_table[minor]->wq);
minor174drivers/isdn/isdn_ppp.cippp_table[minor]->state = IPPP_CLOSEWAIT;
minor182drivers/isdn/isdn_ppp.cint isdn_ppp_open(int minor, struct file *file)
minor185drivers/isdn/isdn_ppp.cprintk(KERN_DEBUG "ippp, open, minor: %d state: %04x\n", minor,ippp_table[minor]->state);
minor187drivers/isdn/isdn_ppp.cif (ippp_table[minor]->state)
minor190drivers/isdn/isdn_ppp.cippp_table[minor]->lp = 0;
minor191drivers/isdn/isdn_ppp.cippp_table[minor]->mp_seqno = 0;  /* MP sequence number */
minor192drivers/isdn/isdn_ppp.cippp_table[minor]->pppcfg = 0;    /* ppp configuration */
minor193drivers/isdn/isdn_ppp.cippp_table[minor]->mpppcfg = 0;   /* mppp configuration */
minor194drivers/isdn/isdn_ppp.cippp_table[minor]->range = 0x1000000;  /* MP: 24 bit range */
minor195drivers/isdn/isdn_ppp.cippp_table[minor]->last_link_seqno = -1;  /* MP: maybe set to Bundle-MIN, when joining a bundle ?? */
minor196drivers/isdn/isdn_ppp.cippp_table[minor]->unit = -1;  /* set, when we have our interface */
minor197drivers/isdn/isdn_ppp.cippp_table[minor]->mru = 1524;  /* MRU, default 1524 */
minor198drivers/isdn/isdn_ppp.cippp_table[minor]->maxcid = 16;  /* VJ: maxcid */
minor199drivers/isdn/isdn_ppp.cippp_table[minor]->tk = current;
minor200drivers/isdn/isdn_ppp.cippp_table[minor]->wq = NULL;    /* read() wait queue */
minor201drivers/isdn/isdn_ppp.cippp_table[minor]->wq1 = NULL;   /* select() wait queue */
minor202drivers/isdn/isdn_ppp.cippp_table[minor]->first = ippp_table[minor]->rq + NUM_RCV_BUFFS - 1; /* receive queue */
minor203drivers/isdn/isdn_ppp.cippp_table[minor]->last = ippp_table[minor]->rq;
minor208drivers/isdn/isdn_ppp.cippp_table[minor]->cbuf = kmalloc(ippp_table[minor]->mru + PPP_HARD_HDR_LEN + 2, GFP_KERNEL);
minor210drivers/isdn/isdn_ppp.cif (ippp_table[minor]->cbuf == NULL) {
minor214drivers/isdn/isdn_ppp.cippp_table[minor]->slcomp = slhc_init(16, 16);  /* not necessary for 2. link in bundle */
minor217drivers/isdn/isdn_ppp.cippp_table[minor]->state = IPPP_OPEN;
minor222drivers/isdn/isdn_ppp.cvoid isdn_ppp_release(int minor, struct file *file)
minor226drivers/isdn/isdn_ppp.cif (minor < 0 || minor >= ISDN_MAX_CHANNELS)
minor230drivers/isdn/isdn_ppp.cprintk(KERN_DEBUG "ippp: release, minor: %d %lx\n", minor, (long) ippp_table[minor]->lp);
minor233drivers/isdn/isdn_ppp.cif (ippp_table[minor]->lp) {  /* a lp address says: this link is still up */
minor236drivers/isdn/isdn_ppp.cif(&p->local == ippp_table[minor]->lp)
minor242drivers/isdn/isdn_ppp.cp = ippp_table[minor]->lp->netdev;
minor244drivers/isdn/isdn_ppp.cippp_table[minor]->lp->ppp_minor = -1;
minor246drivers/isdn/isdn_ppp.cippp_table[minor]->lp = NULL;
minor249drivers/isdn/isdn_ppp.cif (ippp_table[minor]->rq[i].buf)
minor250drivers/isdn/isdn_ppp.ckfree(ippp_table[minor]->rq[i].buf);
minor254drivers/isdn/isdn_ppp.cslhc_free(ippp_table[minor]->slcomp);
minor255drivers/isdn/isdn_ppp.ckfree(ippp_table[minor]->cbuf);
minor258drivers/isdn/isdn_ppp.cippp_table[minor]->state = 0;
minor279drivers/isdn/isdn_ppp.cint isdn_ppp_ioctl(int minor, struct file *file, unsigned int cmd, unsigned long arg)
minor285drivers/isdn/isdn_ppp.cprintk(KERN_DEBUG "isdn_ppp_ioctl: minor: %d cmd: %x",minor,cmd);
minor286drivers/isdn/isdn_ppp.cprintk(KERN_DEBUG " state: %x\n",ippp_table[minor]->state);
minor289drivers/isdn/isdn_ppp.cif (!(ippp_table[minor]->state & IPPP_OPEN))
minor303drivers/isdn/isdn_ppp.c(int) minor, (int) ippp_table[minor]->unit, (int) val);
minor304drivers/isdn/isdn_ppp.creturn isdn_ppp_bundle(minor, val);
minor310drivers/isdn/isdn_ppp.cif ((r = set_arg((void *) arg, ippp_table[minor]->unit)))
minor314drivers/isdn/isdn_ppp.cif ((r = set_arg((void *) arg, ippp_table[minor]->mpppcfg)))
minor320drivers/isdn/isdn_ppp.cippp_table[minor]->mpppcfg = val;
minor323drivers/isdn/isdn_ppp.cif ((r = set_arg((void *) arg, ippp_table[minor]->pppcfg)))
minor330drivers/isdn/isdn_ppp.cif (val & SC_ENABLE_IP && !(ippp_table[minor]->pppcfg & SC_ENABLE_IP)) {
minor331drivers/isdn/isdn_ppp.cippp_table[minor]->lp->netdev->dev.tbusy = 0;
minor334drivers/isdn/isdn_ppp.cippp_table[minor]->pppcfg = val;
minor345drivers/isdn/isdn_ppp.cippp_table[minor]->mru = val;
minor354drivers/isdn/isdn_ppp.cippp_table[minor]->maxcid = val;
minor366drivers/isdn/isdn_ppp.cint isdn_ppp_select(int minor, struct file *file, int type, select_table * st)
minor372drivers/isdn/isdn_ppp.cprintk(KERN_DEBUG "isdn_ppp_select: minor: %d, type: %d \n",minor,type);
minor375drivers/isdn/isdn_ppp.cif (!(ippp_table[minor]->state & IPPP_OPEN))
minor382drivers/isdn/isdn_ppp.cbl = ippp_table[minor]->last;
minor383drivers/isdn/isdn_ppp.cbf = ippp_table[minor]->first;
minor384drivers/isdn/isdn_ppp.cif (bf->next == bl && !(ippp_table[minor]->state & IPPP_NOBLOCK)) {
minor385drivers/isdn/isdn_ppp.cselect_wait(&ippp_table[minor]->wq, st);
minor389drivers/isdn/isdn_ppp.cippp_table[minor]->state &= ~IPPP_NOBLOCK;
minor396drivers/isdn/isdn_ppp.cselect_wait(&ippp_table[minor]->wq1, st);
minor406drivers/isdn/isdn_ppp.cstatic int isdn_ppp_fill_rq(char *buf, int len, int minor)
minor411drivers/isdn/isdn_ppp.cif (minor < 0 || minor >= ISDN_MAX_CHANNELS) {
minor415drivers/isdn/isdn_ppp.cif (!(ippp_table[minor]->state & IPPP_CONNECT)) {
minor422drivers/isdn/isdn_ppp.cbf = ippp_table[minor]->first;
minor423drivers/isdn/isdn_ppp.cbl = ippp_table[minor]->last;
minor429drivers/isdn/isdn_ppp.cippp_table[minor]->first = bf;
minor441drivers/isdn/isdn_ppp.cippp_table[minor]->last = bl->next;
minor444drivers/isdn/isdn_ppp.cif (ippp_table[minor]->wq)
minor445drivers/isdn/isdn_ppp.cwake_up_interruptible(&ippp_table[minor]->wq);
minor455drivers/isdn/isdn_ppp.cint isdn_ppp_read(int minor, struct file *file, char *buf, int count)
minor457drivers/isdn/isdn_ppp.cstruct ippp_struct *c = ippp_table[minor];
minor462drivers/isdn/isdn_ppp.cif (!(ippp_table[minor]->state & IPPP_OPEN))
minor491drivers/isdn/isdn_ppp.cint isdn_ppp_write(int minor, struct file *file,  const char *buf, int count)
minor495drivers/isdn/isdn_ppp.cif (!(ippp_table[minor]->state & IPPP_CONNECT))
minor498drivers/isdn/isdn_ppp.clp = ippp_table[minor]->lp;
minor906drivers/isdn/isdn_ppp.cstatic int isdn_ppp_bundle(int minor, int unit)
minor923drivers/isdn/isdn_ppp.cnlp = ippp_table[minor]->lp;
minor1410drivers/scsi/sd.cint minor = start+i;
minor1411drivers/scsi/sd.ckdev_t devi = MKDEV(MAJOR_NR, minor);
minor1415drivers/scsi/sd.cgdev->part[minor].start_sect = 0;
minor1416drivers/scsi/sd.cgdev->part[minor].nr_sects = 0;
minor1421drivers/scsi/sd.cblksize_size[MAJOR_NR][minor] = 1024;
minor1456drivers/scsi/sd.cint minor = start+i;
minor1457drivers/scsi/sd.ckdev_t devi = MKDEV(MAJOR_NR, minor);
minor1461drivers/scsi/sd.csd_gendisk.part[minor].start_sect = 0;
minor1462drivers/scsi/sd.csd_gendisk.part[minor].nr_sects = 0;
minor1463drivers/scsi/sd.csd_sizes[minor] = 0;
minor70fs/devices.cunsigned int minor,
minor94fs/devices.cif ((isa_tty_dev(major) && need_serial(major,minor)) ||
minor116fs/devices.cstruct file_operations * get_chrfops(unsigned int major, unsigned int minor)
minor118fs/devices.creturn get_fops (major,minor,MAX_CHRDEV,"char-major-%d",chrdevs);
minor217include/asm-m68k/bootinfo.h#define MK_BI_VERSION(major,minor)  (((major)<<16)+(minor))
minor55include/linux/blkdev.hextern int md_map (int minor, kdev_t *rdev, unsigned long *rsector, unsigned long size);
minor599include/linux/fs.hextern int floppy_is_wp(int minor);
minor75include/linux/genhd.hchar *disk_name (struct gendisk *hd, int minor, char *buf);
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);
minor81include/linux/lp.h#define LP_B(minor)  lp_table[(minor)].base    /* IO address */
minor82include/linux/lp.h#define LP_F(minor)  lp_table[(minor)].flags    /* flags for busy, etc. */
minor83include/linux/lp.h#define LP_S(minor)  inb_p(LP_B((minor)) + 1)  /* status port */
minor84include/linux/lp.h#define LP_C(minor)  (lp_table[(minor)].base + 2)  /* control port */
minor85include/linux/lp.h#define LP_CHAR(minor)  lp_table[(minor)].chars    /* busy timeout */
minor86include/linux/lp.h#define LP_TIME(minor)  lp_table[(minor)].time    /* wait time */
minor87include/linux/lp.h#define LP_WAIT(minor)  lp_table[(minor)].wait    /* strobe wait */
minor88include/linux/lp.h#define LP_IRQ(minor)  lp_table[(minor)].irq    /* interrupt # */
minor90include/linux/lp.h#define LP_STAT(minor)  lp_table[(minor)].stats    /* statistics area */
minor110include/linux/md.hint (*run)(int minor, struct md_dev *md_dev);
minor111include/linux/md.hint (*stop)(int minor, struct md_dev *md_dev);
minor112include/linux/md.hint (*status)(char *page, int minor, struct md_dev *md_dev);
minor15include/linux/miscdevice.hint minor;
minor72net/netlink.cunsigned int minor = MINOR(inode->i_rdev);
minor77net/netlink.creturn (netlink_handler[minor])(skb);
minor86net/netlink.cunsigned int minor = MINOR(inode->i_rdev);
minor89net/netlink.cwhile((skb=skb_dequeue(&skb_queue_rd[minor]))==NULL)
minor96net/netlink.cinterruptible_sleep_on(&read_space_wait[minor]);
minor103net/netlink.crdq_size[minor]-=skb->len;
minor120net/netlink.cunsigned int minor = MINOR(inode->i_rdev);
minor122net/netlink.cif(minor>=MAX_LINKS)
minor124net/netlink.cif(open_map&(1<<minor))
minor126net/netlink.cif(active_map&(1<<minor))
minor128net/netlink.copen_map|=(1<<minor);
minor137net/netlink.cunsigned int minor = MINOR(inode->i_rdev);
minor138net/netlink.copen_map&=~(1<<minor);  
minor146net/netlink.cunsigned int minor = MINOR(inode->i_rdev);
minor149net/netlink.cif (minor >= MAX_LINKS)