/core/10.4/fusefs/fuse_device.h

http://macfuse.googlecode.com/ · C++ Header · 42 lines · 19 code · 15 blank · 8 comment · 0 complexity · aa2e75d33d5bd9fb31dd4d9a94d622fb MD5 · raw file

  1. /*
  2. * Copyright (C) 2006-2008 Google. All Rights Reserved.
  3. * Amit Singh <singh@>
  4. */
  5. #ifndef _FUSE_DEVICE_H_
  6. #define _FUSE_DEVICE_H_
  7. #include <sys/conf.h>
  8. #include <miscfs/devfs/devfs.h>
  9. struct fuse_data;
  10. /* softc */
  11. struct fuse_device;
  12. typedef struct fuse_device * fuse_device_t;
  13. #define FUSE_DEVICE_NULL (fuse_device_t)0
  14. /* Global */
  15. int fuse_devices_start(void);
  16. int fuse_devices_stop(void);
  17. /* Per Device */
  18. fuse_device_t fuse_device_get(dev_t dev);
  19. struct fuse_data *fuse_device_get_mpdata(fuse_device_t fdev);
  20. uint32_t fuse_device_get_random(fuse_device_t fdev);
  21. void fuse_device_lock(fuse_device_t fdev);
  22. void fuse_device_unlock(fuse_device_t fdev);
  23. void fuse_device_close_final(fuse_device_t fdev);
  24. /* Control/Debug Utilities */
  25. int fuse_device_kill(int unit, struct proc *p);
  26. int fuse_device_print_vnodes(int unit_flags, struct proc *p);
  27. #endif /* _FUSE_DEVICE_H_ */