diff options
author | Pete Zaitcev <zaitcev@redhat.com> | 2007-05-03 19:51:16 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-12 19:29:47 -0400 |
commit | ce7cd137fced114d49178b73d468b82096a107fb (patch) | |
tree | dfc1f49df82d6ec3b301d786e79ae9481dcc83dd /drivers/usb/mon/usb_mon.h | |
parent | 49cdee0ed0fce9e1bda81f5dcad8d5cce6aec983 (diff) |
usbmon: Add class for binary interface
Add a class which allows for an easier integration with udev.
This code was originally written by Paolo Abeni, and arrived to my tree
as a part of big patch to add binary API on December 18. As I understand,
Paolo always meant the class to be a part of the whole thing. This is his
udev rule to go along with the patch:
KERNEL=="usbmon[0-9]*", NAME="usbmon%n", MODE="0440",OWNER="root",GROUP="bin"
Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/mon/usb_mon.h')
-rw-r--r-- | drivers/usb/mon/usb_mon.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/usb/mon/usb_mon.h b/drivers/usb/mon/usb_mon.h index 13d63255283e..f68ad6d99ad7 100644 --- a/drivers/usb/mon/usb_mon.h +++ b/drivers/usb/mon/usb_mon.h | |||
@@ -20,9 +20,11 @@ struct mon_bus { | |||
20 | struct usb_bus *u_bus; | 20 | struct usb_bus *u_bus; |
21 | 21 | ||
22 | int text_inited; | 22 | int text_inited; |
23 | int bin_inited; | ||
23 | struct dentry *dent_s; /* Debugging file */ | 24 | struct dentry *dent_s; /* Debugging file */ |
24 | struct dentry *dent_t; /* Text interface file */ | 25 | struct dentry *dent_t; /* Text interface file */ |
25 | struct dentry *dent_u; /* Second text interface file */ | 26 | struct dentry *dent_u; /* Second text interface file */ |
27 | struct device *classdev; /* Device in usbmon class */ | ||
26 | 28 | ||
27 | /* Ref */ | 29 | /* Ref */ |
28 | int nreaders; /* Under mon_lock AND mbus->lock */ | 30 | int nreaders; /* Under mon_lock AND mbus->lock */ |
@@ -52,9 +54,10 @@ void mon_reader_del(struct mon_bus *mbus, struct mon_reader *r); | |||
52 | 54 | ||
53 | struct mon_bus *mon_bus_lookup(unsigned int num); | 55 | struct mon_bus *mon_bus_lookup(unsigned int num); |
54 | 56 | ||
55 | int /*bool*/ mon_text_add(struct mon_bus *mbus, int busnum); | 57 | int /*bool*/ mon_text_add(struct mon_bus *mbus, const struct usb_bus *ubus); |
56 | void mon_text_del(struct mon_bus *mbus); | 58 | void mon_text_del(struct mon_bus *mbus); |
57 | // void mon_bin_add(struct mon_bus *); | 59 | int /*bool*/ mon_bin_add(struct mon_bus *mbus, const struct usb_bus *ubus); |
60 | void mon_bin_del(struct mon_bus *mbus); | ||
58 | 61 | ||
59 | int __init mon_text_init(void); | 62 | int __init mon_text_init(void); |
60 | void mon_text_exit(void); | 63 | void mon_text_exit(void); |