forked from fuse4x/kext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fuse_device.h
41 lines (29 loc) · 834 Bytes
/
fuse_device.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* Copyright (C) 2006-2008 Google. All Rights Reserved.
* Amit Singh <singh@>
*/
#ifndef _FUSE_DEVICE_H_
#define _FUSE_DEVICE_H_
#include <sys/conf.h>
#include <miscfs/devfs/devfs.h>
struct fuse_data;
/* softc */
struct fuse_device {
lck_mtx_t *mtx;
int usecount;
pid_t pid;
dev_t dev;
void *cdev;
struct fuse_data *data;
};
typedef struct fuse_device * fuse_device_t;
/* Global */
int fuse_devices_start(void);
int fuse_devices_stop(void);
/* Per Device */
fuse_device_t fuse_device_get(dev_t dev);
void fuse_device_close_final(fuse_device_t fdev);
/* Control/Debug Utilities */
int fuse_device_kill(int unit, struct proc *p);
int fuse_device_print_vnodes(int unit_flags, struct proc *p);
#endif /* _FUSE_DEVICE_H_ */