/* * netsniff-ng - the packet sniffing beast * Copyright 2014 Tobias Klauser. * Subject to the GPL, version 2. */ #include "dissector.h" #include "dissector_netlink.h" static inline void dissector_init_entry(int type) { dissector_set_print_type(&nlmsg_ops, type); } static inline void dissector_init_exit(int type) { dissector_set_print_type(&none_ops, type); } void dissector_init_netlink(int fnttype) { dissector_init_entry(fnttype); dissector_init_exit(fnttype); } void dissector_cleanup_netlink(void) { } el='vcs-git' href='http:///git.distanz.ch/cgit.cgi/linux/net-next.git' title='net-next.git Git repository'/>
summaryrefslogtreecommitdiff
path: root/Documentation/input/gamepad.txt
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2016-03-01 20:49:54 +0100
committerJiri Kosina <jkosina@suse.cz>2016-03-02 10:20:31 +0100
commit43a4a04d4ddb268373d5857c7a7bcbe3658e5b48 (patch)
tree7bcaa4f2b7774bdfddb465b903c79e9fd05ff83e /Documentation/input/gamepad.txt
parentc46fab28703bf12772b3bdbeabcf90df9cd20d58 (diff)
HID: thingm: improve locking
Reading from the device consists of two operations: sending the read command and the actual read from the device. If the device is accessed in between we might read wrong data. Therefore protect the full sequence of both operations with a mutex. Also change the semantics of thingm_recv to include both operations. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'Documentation/input/gamepad.txt')