Hi, U can have a look at call_usermodhelper() function
regards, --- On Sat, 4/9/10, Greg Freemyer <greg.freem...@gmail.com> wrote: From: Greg Freemyer <greg.freem...@gmail.com> Subject: Re: Reading a file from the Kernel. To: "LKomz Komz" <lkomz...@gmail.com> Cc: kernelnewbies@nl.linux.org Date: Saturday, 4 September, 2010, 3:16 AM On Fri, Sep 3, 2010 at 5:23 PM, LKomz Komz <lkomz...@gmail.com> wrote: > > Hi all, > I had a query regarding how to access a file from a kernel driver. > I currently use modprobe.config. Is there any other way I could use > a config file other than the above? > Thanks in advance, > L Komz. It's highly recommended you work with files in userspace and then pass any policy info in via one of the normal kernel APIs. http://kernelnewbies.org/FAQ/WhyWritingFilesFromKernelIsBad Greg -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ