diff options
author | Robert Baldyga <r.baldyga@samsung.com> | 2015-01-23 13:41:01 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-27 09:34:59 -0600 |
commit | 5e33f6fdf735cda1d4580fe6f1878da05718fe73 (patch) | |
tree | 7e6e041131600b431ab284118750a7539245a43a /drivers/usb/gadget/function/u_fs.h | |
parent | acba23fec527012e901636e4ba091ee25461c943 (diff) | |
download | blackbird-obmc-linux-5e33f6fdf735cda1d4580fe6f1878da05718fe73.tar.gz blackbird-obmc-linux-5e33f6fdf735cda1d4580fe6f1878da05718fe73.zip |
usb: gadget: ffs: add eventfd notification about ffs events
Add eventfd which notifies userspace about ep0 events and AIO completion
events. It simplifies using of FunctionFS with event loop, because now
we need to poll on single file (instead of polling on ep0 and eventfd's
supplied to AIO layer).
FunctionFS eventfd is not triggered if another eventfd is supplied to
AIO layer (in AIO request). It can be useful, for example, when we want
to handle AIO transations for chosen endpoint in separate thread.
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/function/u_fs.h')
-rw-r--r-- | drivers/usb/gadget/function/u_fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/function/u_fs.h b/drivers/usb/gadget/function/u_fs.h index 284a1f00a980..60139854e0b1 100644 --- a/drivers/usb/gadget/function/u_fs.h +++ b/drivers/usb/gadget/function/u_fs.h @@ -272,6 +272,7 @@ struct ffs_data { kgid_t gid; } file_perms; + struct eventfd_ctx *ffs_eventfd; bool no_disconnect; struct work_struct reset_work; |