PageRenderTime 20ms CodeModel.GetById 11ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 6#ifndef _FUSE_DEVICE_H_
 7#define _FUSE_DEVICE_H_
 8
 9#include <sys/conf.h>
10#include <miscfs/devfs/devfs.h>
11
12struct fuse_data;
13
14/* softc */
15
16struct fuse_device;
17typedef struct fuse_device * fuse_device_t;
18
19#define FUSE_DEVICE_NULL (fuse_device_t)0
20
21/* Global */
22
23int fuse_devices_start(void);
24int fuse_devices_stop(void);
25
26/* Per Device */
27
28fuse_device_t     fuse_device_get(dev_t dev);
29struct fuse_data *fuse_device_get_mpdata(fuse_device_t fdev);
30uint32_t          fuse_device_get_random(fuse_device_t fdev);
31
32void              fuse_device_lock(fuse_device_t fdev);
33void              fuse_device_unlock(fuse_device_t fdev);
34
35void              fuse_device_close_final(fuse_device_t fdev);
36
37/* Control/Debug Utilities */
38
39int fuse_device_kill(int unit, struct proc *p);
40int fuse_device_print_vnodes(int unit_flags, struct proc *p);
41
42#endif /* _FUSE_DEVICE_H_ */