1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (C) 2000 Jeff Dike (jdike@karaya.com) 4 * Copyright (C) 2001 RidgeRun, Inc (glonnon@ridgerun.com) 5 */ 6 7 #ifndef __UM_UBD_USER_H 8 #define __UM_UBD_USER_H 9 10 #include <os.h> 11 12 int start_io_thread(struct os_helper_thread **td_out, int *fd_out); 13 void *io_thread(void *arg); 14 extern int kernel_fd; 15 16 extern int ubd_read_poll(int timeout); 17 extern int ubd_write_poll(int timeout); 18 19 #define UBD_REQ_BUFFER_SIZE 64 20 21 #endif 22 23