 |
|
 |
|
Next: PCLinuxOS 2009 = More Linux Slopware.....
|
| Author |
Message |
External

Since: Dec 14, 2008 Posts: 5
|
(Msg. 1) Posted: Thu Mar 12, 2009 1:47 am
Post subject: How to write data to config file in kernel mode Archived from groups: comp>os>linux>development>system (more info?)
|
|
|
I want to save some config data in kernel mode but my driver does not
implement fs_operation functions .
Is there some functions which can read and write files in kernel
mode ?
I know Windows has kernel mode file functions , how can I do that in
Linux ?
Thank you . |
|
| Back to top |
|
 |  |
External

Since: Apr 25, 2007 Posts: 162
|
(Msg. 2) Posted: Thu Mar 12, 2009 1:54 am
Post subject: Re: How to write data to config file in kernel mode [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Mar 12, 1:47 am, Kid <kid197... RemoveThis @yahoo.com.tw> wrote:
> I want to save some config data in kernel mode but my driver does not
> implement fs_operation functions .
>
> Is there some functions which can read and write files in kernel
> mode ?
>
> I know Windows has kernel mode file functions , how can I do that in
> Linux ?
>
> Thank you .
Use a helper application and a well-defined protocol between the
application and the driver.
DS |
|
| Back to top |
|
 |  |
External

Since: Apr 25, 2007 Posts: 162
|
(Msg. 3) Posted: Thu Mar 12, 2009 3:00 am
Post subject: Re: How to write data to config file in kernel mode [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Mar 12, 2:51 am, Roberto Divia <Roberto.Di....RemoveThis@cern.ch> wrote:
> > Use a helper application and a well-defined protocol between the
> > application and the driver.
>
> Interesting... How would you start the helper application?
Possibly by executing it in the system startup scripts in the initial
ramfs. Another way would be to ship a library with the driver that
applications use to access the driver. The library starts the helper
application. It depends on the details of the driver.
The CIFS driver, for example has a helper application that mounts CIFS
filesystems. You can't do much with the CIFS driver without mounting a
filesystem.
The 'uvesafb' frame buffer driver requires a helper application,
'v86d'. See 'Documentation/fb/uvesafb.txt' for some details.
DS |
|
| Back to top |
|
 |  |
External

Since: Mar 12, 2009 Posts: 1
|
(Msg. 4) Posted: Thu Mar 12, 2009 7:20 am
Post subject: Re: How to write data to config file in kernel mode [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
David Schwartz wrote:
> On Mar 12, 1:47 am, Kid <kid197....DeleteThis@yahoo.com.tw> wrote:
>> I want to save some config data in kernel mode but my driver does not
>> implement fs_operation functions .
>>
>> Is there some functions which can read and write files in kernel
>> mode ?
>>
>> I know Windows has kernel mode file functions , how can I do that in
>> Linux ?
>>
>> Thank you .
>
> Use a helper application and a well-defined protocol between the
> application and the driver.
Interesting... How would you start the helper application?
Ciao,
--
Roberto Divia` Love at first sight is one of the greatest
Dep:PH Bat:53 Mailbox:C02110 labour-saving devices the world has ever seen
Route de Meyrin 385 ---------------------------------------------
Case Postale Phone: +41-22-767-4994
CH-1211 Geneve 23 CERN Fax: +41-22-767-9585
Switzerland E-Mail: Roberto.Divia.DeleteThis@cern.ch |
|
| Back to top |
|
 |  |
| Related Topics: | Access shared memory from kernel module - Hi All, I wanted to know if shared memory created in user space can be accessed from a loadable kernel module. Have no...
RFC3971 - Does anyone know if RFC3971 support is being developed for Linux? It does not seem to be implemented in the mainline..
Size 8 bit, 16 bit, 32 bit and 64 bit systems. - I need to find out what is the size of following data structures in 8 bit, 16 bit, 32 bit, and 64 bit systems. struct....
Size 8 bit, 16 bit, 32 bit and 64 bit systems. - I need to find out what is the size of following data structures in 8 bit, 16 bit, 32 bit, and 64 bit systems. struct....
Controlling UART transmission of bytes - I'm programming an ARM's UART that comes with a library implementing the standard unix termios interface. Regarding..
write data to a file from a kernel module - Hello, I am trying to create a module for kernel 2.4.27 that writes data to a file when it receives a packet from the.... |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|