Lines Matching refs:f_cuse

82 static int f_cuse = -1;  variable
101 f_cuse = open("/dev/cuse", O_RDWR); in cuse_init()
102 if (f_cuse < 0) { in cuse_init()
123 if (f_cuse < 0) in cuse_uninit()
126 f = f_cuse; in cuse_uninit()
127 f_cuse = -1; in cuse_uninit()
179 if (f_cuse < 0) in cuse_vmalloc()
202 error = ioctl(f_cuse, CUSE_IOCTL_ALLOC_MEMORY, &info); in cuse_vmalloc()
217 MAP_SHARED, f_cuse, CUSE_ALLOC_PAGES_MAX * in cuse_vmalloc()
222 error = ioctl(f_cuse, CUSE_IOCTL_FREE_MEMORY, &info); in cuse_vmalloc()
249 if (f_cuse < 0 || ptr == NULL) in cuse_is_vmalloc_addr()
270 if (f_cuse < 0) in cuse_vmfree()
288 error = ioctl(f_cuse, CUSE_IOCTL_FREE_MEMORY, &info); in cuse_vmfree()
309 if (f_cuse < 0) in cuse_alloc_unit_number_by_id()
314 error = ioctl(f_cuse, CUSE_IOCTL_ALLOC_UNIT_BY_ID, pnum); in cuse_alloc_unit_number_by_id()
327 if (f_cuse < 0) in cuse_free_unit_number_by_id()
333 error = ioctl(f_cuse, CUSE_IOCTL_FREE_UNIT_BY_ID, &num); in cuse_free_unit_number_by_id()
345 if (f_cuse < 0) in cuse_alloc_unit_number()
348 error = ioctl(f_cuse, CUSE_IOCTL_ALLOC_UNIT, pnum); in cuse_alloc_unit_number()
360 if (f_cuse < 0) in cuse_free_unit_number()
363 error = ioctl(f_cuse, CUSE_IOCTL_FREE_UNIT, &num); in cuse_free_unit_number()
379 if (f_cuse < 0) in cuse_dev_create()
403 error = ioctl(f_cuse, CUSE_IOCTL_CREATE_DEV, &info); in cuse_dev_create()
421 if (f_cuse < 0) in cuse_dev_destroy()
428 error = ioctl(f_cuse, CUSE_IOCTL_DESTROY_DEV, &cdev); in cuse_dev_destroy()
469 if (f_cuse < 0) in cuse_wait_and_process()
472 error = ioctl(f_cuse, CUSE_IOCTL_GET_COMMAND, &info); in cuse_wait_and_process()
600 ioctl(f_cuse, CUSE_IOCTL_SYNC_COMMAND, &error); in cuse_wait_and_process()
630 ioctl(f_cuse, CUSE_IOCTL_SET_PFH, &handle); in cuse_dev_set_per_file_handle()
701 if ((f_cuse < 0) || (len < 0)) in cuse_copy_out()
718 error = ioctl(f_cuse, CUSE_IOCTL_WRITE_DATA, &info); in cuse_copy_out()
734 if ((f_cuse < 0) || (len < 0)) in cuse_copy_in()
751 error = ioctl(f_cuse, CUSE_IOCTL_READ_DATA, &info); in cuse_copy_in()
796 if (f_cuse < 0) in cuse_poll_wakeup()
799 ioctl(f_cuse, CUSE_IOCTL_SELWAKEUP, &error); in cuse_poll_wakeup()