You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
747 B

  1. /*
  2. FUSE-ioctl: ioctl support for FUSE
  3. Copyright (C) 2008 SUSE Linux Products GmbH
  4. Copyright (C) 2008 Tejun Heo <teheo@suse.de>
  5. This program can be distributed under the terms of the GNU GPL.
  6. See the file COPYING.
  7. */
  8. #include <sys/types.h>
  9. #include <sys/uio.h>
  10. #include <sys/ioctl.h>
  11. enum {
  12. FIOC_GET_SIZE = _IOR('E', 0, size_t),
  13. FIOC_SET_SIZE = _IOW('E', 1, size_t),
  14. /*
  15. * The following two ioctls don't follow usual encoding rules
  16. * and transfer variable amount of data.
  17. */
  18. FIOC_READ = _IO('E', 2),
  19. FIOC_WRITE = _IO('E', 3),
  20. };
  21. struct fioc_rw_arg {
  22. off_t offset;
  23. void *buf;
  24. size_t size;
  25. size_t prev_size; /* out param for previous total size */
  26. size_t new_size; /* out param for new total size */
  27. };