Home
last modified time | relevance | path

Searched refs:md_unit (Results 1 – 9 of 9) sorted by relevance

/freebsd/tools/test/stress2/misc/
H A Dgpt.sh37 md_unit=$(mdconfig -t swap -s 30MB)
38 geom part create -s GPT "$md_unit"
39 geom part add -s 10M -t linux-swap -l tst0 "$md_unit"
40 geom part resize -i 1 -s 20M "$md_unit"
49 mdconfig -d -u $md_unit
/freebsd/sbin/mdconfig/tests/
H A Dmdconfig_test.sh250 local md_unit=99
253 local md="md${md_unit}"
258 -x "mdconfig -a -t malloc -s ${size_in_mb}m -u $md_unit"
/freebsd/sys/sys/
H A Dmdioctl.h51 unsigned md_unit; /* unit number */ member
/freebsd/sbin/mdconfig/
H A Dmdconfig.c362 mdio.md_unit = strtoul(uflag, &p, 0); in main()
363 if (mdio.md_unit == (unsigned)ULONG_MAX || *p != '\0') in main()
382 printf("%s%d\n", nflag ? "" : MD_NAME, mdio.md_unit); in main()
422 mdiox.md_unit = unit; in print_options()
/freebsd/sys/dev/md/
H A Dmd.c118 unsigned md_unit; /* unit number */ member
135 unsigned md_unit; member
1708 if (mdr->md_unit > INT_MAX) in kern_mdattach_locked()
1710 sc = mdnew(mdr->md_unit, &error, mdr->md_type); in kern_mdattach_locked()
1720 mdr->md_unit = sc->unit; in kern_mdattach_locked()
1783 sc = mdfind(mdr->md_unit); in kern_mddetach_locked()
1813 sc = mdfind(mdr->md_unit); in kern_mdresize_locked()
1845 sc = mdfind(mdr->md_unit); in kern_mdquery_locked()
1879 (mdr)->md_unit = (mdio)->md_unit; \
1892 (mdio)->md_unit = (mdr)->md_unit; \
/freebsd/sys/kern/
H A Dvfs_mountroot.c608 mdio->md_unit = root_mount_mddev; in parse_dir_md()
617 mdio->md_unit = 0; in parse_dir_md()
622 if (mdio->md_unit > 9) { in parse_dir_md()
633 root_mount_mddev = mdio->md_unit; in parse_dir_md()
/freebsd/sbin/umount/
H A Dumount.c685 mdio.md_unit = strtoul(device + sizeof(DEV_MD) - 1, &eptr, 0); in md_detach()
686 if (mdio.md_unit == (unsigned)ULONG_MAX || eptr - device == sizeof(DEV_MD) - 1) { in md_detach()
/freebsd/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_diskstorage_tbl.c368 mdio.md_unit = unit; in disk_OS_get_MD_disks()
/freebsd/tests/sys/aio/
H A Daio_test.c819 unit = mdio.md_unit; in aio_md_setup()
849 mdio.md_unit = unit; in aio_md_cleanup()