major             117 kernel/file.c      if(f->major < 0 || f->major >= NDEV || !devsw[f->major].read)
major             119 kernel/file.c      r = devsw[f->major].read(1, addr, n);
major             145 kernel/file.c      if(f->major < 0 || f->major >= NDEV || !devsw[f->major].write)
major             147 kernel/file.c      ret = devsw[f->major].write(1, addr, n);
major               9 kernel/file.h    short major;       // FD_DEVICE
major              25 kernel/file.h    short major;
major             234 kernel/fs.c      dip->major = ip->major;
major             307 kernel/fs.c        ip->major = dip->major;
major              34 kernel/fs.h      short major;          // Major device number (T_DEVICE only)
major             246 kernel/sysfile.c create(char *path, short type, short major, short minor)
major             271 kernel/sysfile.c   ip->major = major;
major             338 kernel/sysfile.c   if(ip->type == T_DEVICE && (ip->major < 0 || ip->major >= NDEV)){
major             354 kernel/sysfile.c     f->major = ip->major;
major             394 kernel/sysfile.c   int major, minor;
major             397 kernel/sysfile.c   argint(1, &major);
major             400 kernel/sysfile.c      (ip = create(path, T_DEVICE, major, minor)) == 0){