Searched refs:ctrl_fd (Results 1 – 1 of 1) sorted by relevance
133 int ctrl_fd; member1279 int ret, ctrl_fd; in vduse_dev_create() local1297 ctrl_fd = open("/dev/vduse/control", O_RDWR); in vduse_dev_create()1298 if (ctrl_fd < 0) { in vduse_dev_create()1305 if (ioctl(ctrl_fd, VDUSE_SET_API_VERSION, &version)) { in vduse_dev_create()1327 ret = ioctl(ctrl_fd, VDUSE_CREATE_DEV, dev_config); in vduse_dev_create()1334 dev->ctrl_fd = ctrl_fd; in vduse_dev_create()1345 ioctl(ctrl_fd, VDUSE_DESTROY_DEV, name); in vduse_dev_create()1347 close(ctrl_fd); in vduse_dev_create()1370 if (dev->ctrl_fd >= 0) { in vduse_dev_destroy()[all …]