Searched refs:maj (Results 1 - 9 of 9) sorted by relevance
/darwin-on-arm/xnu/bsd/dev/arm/ |
H A D | conf.c | 301 dev_t maj = major(dev); local 305 maj = chrtoblk(maj); 306 if (maj == NODEV) { 313 if ((D_TYPEMASK & bdevsw[maj].d_type) == D_DISK) {
|
/darwin-on-arm/xnu/bsd/dev/i386/ |
H A D | conf.c | 301 dev_t maj = major(dev); local 305 maj = chrtoblk(maj); 306 if (maj == NODEV) { 311 if ((D_TYPEMASK & bdevsw[maj].d_type) == D_DISK) {
|
/darwin-on-arm/xnu/SETUP/config/ |
H A D | mkswapconf.c | 224 int maj; local 237 if (sscanf(line, "%s\t%d\n", buf, &maj) != 2) 241 (*dp)->dev_major = maj;
|
/darwin-on-arm/xnu/bsd/sys/ |
H A D | disklabel.h | 101 #define MAKEDISKDEV(maj, unit, part) \ 102 (makedev((maj), ((unit) * MAXPARTITIONS) + (part)))
|
/darwin-on-arm/xnu/bsd/miscfs/specfs/ |
H A D | spec_vnops.c | 229 int maj = major(dev); local 231 if ((u_int)maj >= (u_int)nblkdev) 252 int maj = major(dev); local 264 if ((u_int)maj >= (u_int)nchrdev) 288 error = (*cdevsw[maj].d_open)(dev, ap->a_mode, S_IFCHR, p); 296 if (error == 0 && (D_TYPEMASK & cdevsw[maj].d_type) == D_DISK && !vp->v_un.vu_specinfo->si_initted) { 331 if ((u_int)maj >= (u_int)nblkdev) 348 error = (*bdevsw[maj].d_open)(dev, ap->a_mode, S_IFBLK, p);
|
/darwin-on-arm/xnu/bsd/net/ |
H A D | bpf.c | 412 bpf_make_dev_t(int maj) argument 455 (void) devfs_make_node(makedev(maj, i), 2376 int maj; local 2389 maj = cdevsw_add(CDEV_MAJOR, &bpf_cdevsw); 2390 if (maj == -1) { 2408 bpf_make_dev_t(maj);
|
H A D | pf_ioctl.c | 438 int maj; local 558 maj = cdevsw_add(PF_CDEV_MAJOR, &pf_cdevsw); 559 if (maj == -1) { 563 (void) devfs_make_node(makedev(maj, PFDEV_PF), DEVFS_CHAR, 566 (void) devfs_make_node(makedev(maj, PFDEV_PFM), DEVFS_CHAR,
|
/darwin-on-arm/xnu/bsd/vfs/ |
H A D | vfs_subr.c | 4613 u_int maj = major(vp->v_rdev); local 4615 if (maj < (u_int)nchrdev && 4616 (D_TYPEMASK & cdevsw[maj].d_type) == D_TTY)
|
H A D | vfs_syscalls.c | 741 int maj; local 758 maj = major(dev); 760 if ((u_int)maj >= (u_int)nblkdev) 763 error = bdevsw[maj].d_open(dev, FREAD | FWRITE, S_IFBLK, p);
|
Completed in 217 milliseconds