diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2009-04-14 19:48:36 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-04-15 12:10:11 +0200 |
commit | b3c2d2ddd63944ef2a1e4a43077b602288107e01 (patch) | |
tree | 2264092a285ab6af01f5f86d2cf06d2068546d37 /drivers/hid/hid-cypress.c | |
parent | 91e463c8f5f7a5b09d3d034c01a88567af60c504 (diff) |
splice: split up __splice_from_pipe()
Split up __splice_from_pipe() into four helper functions:
splice_from_pipe_begin()
splice_from_pipe_next()
splice_from_pipe_feed()
splice_from_pipe_end()
splice_from_pipe_next() will wait (if necessary) for more buffers to
be added to the pipe. splice_from_pipe_feed() will feed the buffers
to the supplied actor and return when there's no more data available
(or if all of the requested data has been copied).
This is necessary so that implementations can do locking around the
non-waiting splice_from_pipe_feed().
This patch should not cause any change in behavior.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/hid/hid-cypress.c')
0 files changed, 0 insertions, 0 deletions