V4L/DVB (8130): split dvb_ringbuffer dual-use functions

split the suckers into kernel-memory and user-memory versions,
annotate both properly.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
Al Viro
2008-06-22 14:20:29 -03:00
committed by Mauro Carvalho Chehab
parent 67778b3227
commit b0ba0e3ab6
7 changed files with 69 additions and 37 deletions

View File

@@ -96,7 +96,7 @@ static ssize_t dvb_dmxdev_buffer_read(struct dvb_ringbuffer *src,
if (avail > todo)
avail = todo;
ret = dvb_ringbuffer_read(src, (u8 *)buf, avail, 1);
ret = dvb_ringbuffer_read_user(src, buf, avail);
if (ret < 0)
break;