you can try to use IOCTL



在2009-04-16?13:56:21,"niranjan?puram"?<[email protected]>?写道:
>No?heavy?data?transfer,?I?just?want?to?set?variables?dynamically?from
>the?user?space.?So?i?think?declaring?a?kernel?module?parameter?and
>changing?it?through?the?/proc?file?system?should?solve?the?problem.
>Also?this?is?the?first?time?I?am?programming?in?kernel?:)?so?please
>bear?with?me.?Is?there?an?exhaustive?documentation?as?to?how?to?do?it?
>Thanks?in?advance.
>
>On?Thu,?Apr?16,?2009?at?11:18?AM,?sandeep?lahane
><[email protected]>?wrote:
>>?On?Thu,?Apr?16,?2009?at?10:47?AM,?Ramesh?<[email protected]>?wrote:
>>>?You?could?use?netlink?sockets
>>>
>>>?On?Wed,?Apr?15,?2009?at?9:56?PM,?niranjan?puram
>>>?<[email protected]>?wrote:
>>>>?Hello?all,
>>>>?????I?need?to?set?some?variables?defined?in?a?kernel?driver?from?the
>>>>?user?space.?Is?there?a?clean?simple?way?to?do?that??I?thought?of?the
>>>>?following?methods:?socket?connection,?RPC?,etc.?but?was?not?able?to
>>>>?find?enough?documentation?regarding?the?same.?Please?help?me,?its
>>>>?urgent.
>>>>
>>>>?Thanks,
>>>>?Niranjan?Kumar
>>>>
>>>>?--
>>>>?To?unsubscribe?from?this?list:?send?an?email?with
>>>>?"unsubscribe?kernelnewbies"[email protected]
>>>>?Please?read?the?FAQ?at?http://kernelnewbies.org/FAQ
>>>>
>>>>
>>>
>>>?--
>>>?To?unsubscribe?from?this?list:?send?an?email?with
>>>?"unsubscribe?kernelnewbies"[email protected]
>>>?Please?read?the?FAQ?at?http://kernelnewbies.org/FAQ
>>>
>>>
>>>I?need?to?set?some?variables?defined?in?a?kernel?driver?from?the
>>>user?space.
>>
>>?Is?that?all?you?need?to?do??Or?this?involves?heavy?data?transfer?
>>?Also,?do?you?need?to?define?certain?things?when?your?kernel?module
>>?is?inited?or?you?have?to?do?this?much?later?
>>
>>?IMHO,?you?can?use?module?params?while?inserting?kernel?module?and
>>?depending?on?them?you?can?do?certain?initialization?etc.?If?you?need?it
>>?later?i.e.?after?kernel?module?has?been?insmoded?and?being?used?then
>>?I?think?you?can?use?/proc?interface.?If?it?involved?data?transfer?between
>>?kernel?and?userspace?then?probably?you?will?need?netlink?sockets?etc.
>>
>>?Regards,
>>?Sandeep.
>>
>
>--
>To?unsubscribe?from?this?list:?send?an?email?with
>"unsubscribe?kernelnewbies"[email protected]
>Please?read?the?FAQ?at?http://kernelnewbies.org/FAQ
>

Reply via email to