ubd.h 463 B

12345678910111213141516171819202122
  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. #ifndef __UM_UBD_USER_H
  7. #define __UM_UBD_USER_H
  8. #include <os.h>
  9. int start_io_thread(struct os_helper_thread **td_out, int *fd_out);
  10. void *io_thread(void *arg);
  11. extern int kernel_fd;
  12. extern int ubd_read_poll(int timeout);
  13. extern int ubd_write_poll(int timeout);
  14. #define UBD_REQ_BUFFER_SIZE 64
  15. #endif