sandboxblockdev.h 336 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (c) 2013, Henrik Nordstrom <henrik@henriknordstrom.net>
  4. */
  5. #ifndef __SANDBOX_BLOCK_DEV__
  6. #define __SANDBOX_BLOCK_DEV__
  7. struct host_block_dev {
  8. #ifndef CONFIG_BLK
  9. struct blk_desc blk_dev;
  10. #endif
  11. char *filename;
  12. int fd;
  13. };
  14. int host_dev_bind(int dev, char *filename);
  15. #endif