lkml.org 
[lkml]   [2010]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/5] use idr kernel library instead of handles
Date
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(-)



\
 
 \ /
  Last update: 2010-07-28 23:03    [W:0.044 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site