[Click] Passing information from user level application to Click kernel module

Eddie Kohler kohler at cs.ucla.edu
Fri Oct 3 12:44:15 EDT 2008


Also realize that it is extremely unlikely that passing a filename to the 
kenrel will be useful.  Lots of people seem to want to use fopen() etc. in the 
kernel but you can't.  If you want to access file data and you are not already 
a kernel programmer, then do it at user level.

Eddie


Roman Chertov wrote:
> Se Gi Hong wrote:
>> Hello all,
>>
>> I am running Click as a kernel module. I am wondering how to pass 
>> information, such as file name and IP address, from the user level to 
>> the Click in the kernel level. I am thinking of using syscall, but I 
>> think there must be an alternative way. 
> 
> You can use write handlers for that.  You can take a look at 
> FastUPDSource kernel element.
> 
> Roman
> 
>> Thanks,
>> SeGi
>> _______________________________________________
>> click mailing list
>> click at amsterdam.lcs.mit.edu
>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>>
> 
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click


More information about the click mailing list