summaryrefslogtreecommitdiffstats
path: root/fs/compat.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2011-09-06 13:50:34 +0200
committerJiri Kosina <jkosina@suse.cz>2011-09-07 13:25:17 +0200
commit29d28064e27d11433c4249369f469fab86826d0c (patch)
treeb1d25e0472636c029bf30361c56fd02e9b38f97d /fs/compat.c
parentbe1ecd62e619dae8d7c5b7f212333558fcc85d4d (diff)
downloadop-kernel-dev-29d28064e27d11433c4249369f469fab86826d0c.zip
op-kernel-dev-29d28064e27d11433c4249369f469fab86826d0c.tar.gz
HID: wiimote: Helper functions for synchronous requests
To initialize wiimote peripherals, the stream to the wiimote must be held exclusively by the initializer, otherwise the initialization will fail. Many initializations require multiple memory requests to be sent synchronously so we need a way to lock the stream and release it when we are done. This adds several helper functions which allow to lock the stream, then send requests, wait for the answers and release the stream again. When holding the lock, the function may sleep and interrupted by signals. Also it returns after a short timeout so userspace shouldn't notice long delays. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'fs/compat.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud