Messages in this thread | | | From | Ernesto Ramos <> | Subject | [PATCH 0/5] use idr kernel library instead of handles | Date | Wed, 28 Jul 2010 16:04:52 -0500 |
| |
From: Rene Sapiens <rene.sapiens@ti.com>
Use idr kernel library to send/receive node and stream ids to the user instead of kernel address. This id will be use to access the node and stream handles at the kernel side, if id does not match to any handle error -EFAULT is returned.
For processor handle, dspbridge driver will make sure the handle is valid by using the handle stored in process context.
Ernesto Ramos (5): staging:ti dspbridge: use node id instead of kernel address staging:ti dspbridge: avoid errors if node handle is zero staging:ti dspbridge: use processor handle from context instead of user's staging:ti dspbridge: use stream id instead of kernel address staging:ti dspbridge: avoid errors if stream id is zero
.../staging/tidspbridge/include/dspbridge/drv.h | 11 +- .../staging/tidspbridge/include/dspbridge/node.h | 14 +- .../include/dspbridge/resourcecleanup.h | 12 - .../staging/tidspbridge/include/dspbridge/strm.h | 22 +- drivers/staging/tidspbridge/pmgr/dspapi.c | 329 ++++++++++++++++---- drivers/staging/tidspbridge/rmgr/drv.c | 303 ++++++------------- drivers/staging/tidspbridge/rmgr/drv_interface.c | 18 +- drivers/staging/tidspbridge/rmgr/node.c | 109 ++++--- drivers/staging/tidspbridge/rmgr/strm.c | 54 ++-- 9 files changed, 485 insertions(+), 387 deletions(-)
| |