Home
last modified time | relevance | path

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

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