Lines Matching refs:f_cuse
81 static int f_cuse = -1; variable
100 f_cuse = open("/dev/cuse", O_RDWR); in cuse_init()
101 if (f_cuse < 0) { in cuse_init()
122 if (f_cuse < 0) in cuse_uninit()
125 f = f_cuse; in cuse_uninit()
126 f_cuse = -1; in cuse_uninit()
176 if (f_cuse < 0 || size < 1 || size > CUSE_ALLOC_BYTES_MAX) in cuse_vmalloc()
212 error = ioctl(f_cuse, CUSE_IOCTL_ALLOC_MEMORY, &info); in cuse_vmalloc()
217 MAP_SHARED, f_cuse, n << CUSE_ALLOC_UNIT_SHIFT); in cuse_vmalloc()
227 (void) ioctl(f_cuse, CUSE_IOCTL_FREE_MEMORY, &info); in cuse_vmalloc()
243 if (f_cuse < 0 || ptr == NULL) in cuse_is_vmalloc_addr()
264 if (f_cuse < 0 || ptr == NULL) in cuse_vmfree()
282 error = ioctl(f_cuse, CUSE_IOCTL_FREE_MEMORY, &info); in cuse_vmfree()
303 if (f_cuse < 0) in cuse_alloc_unit_number_by_id()
308 error = ioctl(f_cuse, CUSE_IOCTL_ALLOC_UNIT_BY_ID, pnum); in cuse_alloc_unit_number_by_id()
321 if (f_cuse < 0) in cuse_free_unit_number_by_id()
327 error = ioctl(f_cuse, CUSE_IOCTL_FREE_UNIT_BY_ID, &num); in cuse_free_unit_number_by_id()
339 if (f_cuse < 0) in cuse_alloc_unit_number()
342 error = ioctl(f_cuse, CUSE_IOCTL_ALLOC_UNIT, pnum); in cuse_alloc_unit_number()
354 if (f_cuse < 0) in cuse_free_unit_number()
357 error = ioctl(f_cuse, CUSE_IOCTL_FREE_UNIT, &num); in cuse_free_unit_number()
373 if (f_cuse < 0) in cuse_dev_create()
397 error = ioctl(f_cuse, CUSE_IOCTL_CREATE_DEV, &info); in cuse_dev_create()
415 if (f_cuse < 0) in cuse_dev_destroy()
422 error = ioctl(f_cuse, CUSE_IOCTL_DESTROY_DEV, &cdev); in cuse_dev_destroy()
463 if (f_cuse < 0) in cuse_wait_and_process()
466 error = ioctl(f_cuse, CUSE_IOCTL_GET_COMMAND, &info); in cuse_wait_and_process()
594 ioctl(f_cuse, CUSE_IOCTL_SYNC_COMMAND, &error); in cuse_wait_and_process()
624 ioctl(f_cuse, CUSE_IOCTL_SET_PFH, &handle); in cuse_dev_set_per_file_handle()
695 if ((f_cuse < 0) || (len < 0)) in cuse_copy_out()
712 error = ioctl(f_cuse, CUSE_IOCTL_WRITE_DATA, &info); in cuse_copy_out()
728 if ((f_cuse < 0) || (len < 0)) in cuse_copy_in()
745 error = ioctl(f_cuse, CUSE_IOCTL_READ_DATA, &info); in cuse_copy_in()
790 if (f_cuse < 0) in cuse_poll_wakeup()
793 ioctl(f_cuse, CUSE_IOCTL_SELWAKEUP, &error); in cuse_poll_wakeup()