/core/10.5/fusefs/fuse_vfsops.h

http://macfuse.googlecode.com/ · C Header · 57 lines · 34 code · 17 blank · 6 comment · 0 complexity · 2ec068c6273787d92f8a6b2565ee52af MD5 · raw file

  1. /*
  2. * Copyright (C) 2006-2008 Google. All Rights Reserved.
  3. * Amit Singh <singh@>
  4. */
  5. #ifndef _FUSE_VFSOPS_H_
  6. #define _FUSE_VFSOPS_H_
  7. #include <sys/kernel_types.h>
  8. #include <sys/mount.h>
  9. #include <sys/stat.h>
  10. #include <sys/types.h>
  11. #include <sys/vnode.h>
  12. #include <fuse_param.h>
  13. struct fuse_data;
  14. struct fuse_ticket;
  15. extern struct vnodeopv_entry_desc fuse_vnode_operation_entries[];
  16. #if M_MACFUSE_ENABLE_SPECFS
  17. extern struct vnodeopv_entry_desc fuse_spec_operation_entries[];
  18. #endif
  19. #if M_MACFUSE_ENABLE_FIFOFS
  20. extern struct vnodeopv_entry_desc fuse_fifo_operation_entries[];
  21. #endif
  22. /* VFS operations */
  23. static errno_t
  24. fuse_vfsop_mount(mount_t mp, vnode_t devvp, user_addr_t data,
  25. vfs_context_t context);
  26. static errno_t
  27. fuse_vfsop_unmount(mount_t mp, int mntflags, vfs_context_t context);
  28. static errno_t
  29. fuse_vfsop_root(mount_t mp, vnode_t *vpp, vfs_context_t context);
  30. static errno_t
  31. fuse_vfsop_getattr(mount_t mp, struct vfs_attr *attr, vfs_context_t context);
  32. static errno_t
  33. fuse_vfsop_sync(mount_t mp, int waitfor, vfs_context_t context);
  34. static errno_t
  35. fuse_vfsop_setattr(mount_t mp, struct vfs_attr *fsap,
  36. __unused vfs_context_t context);
  37. /* Other VFS operations */
  38. extern int
  39. fuse_setextendedsecurity(mount_t mp, int state);
  40. #endif /* _FUSE_VFSOPS_H_ */