Searched defs:ctl_fd (Results 1 - 1 of 1) sorted by relevance

/illumos-gate/usr/src/cmd/ramdiskadm/
H A Dmain.c94 alloc_ramdisk(int ctl_fd, char *name, uint64_t size) argument
101 if (ioctl(ctl_fd, RD_CREATE_DISK, &ri) == -1) {
113 delete_ramdisk(int ctl_fd, char *name) argument
119 if (ioctl(ctl_fd, RD_DELETE_DISK, &ri) == -1) {
221 int ctl_fd = 0; local
320 ctl_fd = open(rd_ctl, openflag);
321 if (ctl_fd == -1) {
332 alloc_ramdisk(ctl_fd, name, size);
334 delete_ramdisk(ctl_fd, name);

Completed in 75 milliseconds