lkml.org 
[lkml]   [2001]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRight place to store process specific data

I want to have a fast common shared memory between
kernel and user. I am using a system call which uses
"map_user_kiobuf" on user allocated memory to satisfy
this need.

The system call returns the physical address to the
user so that the user can pass this address to the
kernel, next time, when the kernel wants to access the
shared memory.

I want to check whether the address passed by the user
is valid or not. For that I want to store the address
somewhere into the process structure when I generate
it through "map_user_kiobuf".( may be task_struct ).
But I am not able to find a place to keep the address.
( Any reserved variables ).

My first question is
1>Is there any place in the current process context

where I can store the address?

2>Is there any other method to have fast shared memory

between user and kernel.

--Amit

__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:08    [W:0.037 / U:0.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site