Re: Moving an application from User Space to Kernel Space
- From: "karthikbg" <karthik.balaguru@xxxxxxxxxxxxxxx>
- Date: 7 Nov 2006 22:35:06 -0800
Michael Schnell wrote:
karthikbg wrote:
I have written a bit big Flash Drive Furnctionality in the userspace.
Now, Would like to move into the Kernel Space.
I don't understand "Flash Drive Functionality".
Is the "Flash Drive" a standard flash card ?
So you should use the appropriate driver (e.g. IDE for Compact Flash).
Is the "Flash Drive" a chip in the CPU's address space ?
So you should use the standard MTD driver (Maybe you need to modify
the MTD driver according to your hardware).
Is it something else ?
You might need to create a _small_ kernel mode driver that just
moves blocks of data to/from the Flash. (Hardware driver layer)
Is the "Functionality" a kind of file system ?
Can't you use an existing file system ?
If not, you might write you own Kernel mode file system according to
the standards.
Is the "Functionality" something different ?
Will it provide functions to be accessed by user mode programs ?
You could create a Kernel mode module to provide accessibility
using a standard driver API. This driver should use the hardware driver
layer by an internal API.
Or you could create an "so" library with a propriety API. The "so"
will use the hardware driver to access the flash memory.
If not this would be a user mode program using the API of the
hardware driver.
Have fun !
-Michael
Hi ,
It is a Flash Memory driver with lot of userspace interactions which i
have been using completely from userspace till now. Thankyou for all
your responses. Your ideas have really
given me the necessary clarifications.
Regards,
Karthik Balaguru
.
- Follow-Ups:
- Re: Moving an application from User Space to Kernel Space
- From: Geronimo W. Christ Esq
- Re: Moving an application from User Space to Kernel Space
- From: karthikbg
- Re: Moving an application from User Space to Kernel Space
- References:
- Moving an application from User Space to Kernel Space
- From: karthikbg
- Re: Moving an application from User Space to Kernel Space
- From: Michael Schnell
- Re: Moving an application from User Space to Kernel Space
- From: karthikbg
- Re: Moving an application from User Space to Kernel Space
- From: Michael Schnell
- Moving an application from User Space to Kernel Space
- Prev by Date: Re: How to read the data from the first sector of HDD
- Next by Date: Re: Moving an application from User Space to Kernel Space
- Previous by thread: Re: Moving an application from User Space to Kernel Space
- Next by thread: Re: Moving an application from User Space to Kernel Space
- Index(es):
Relevant Pages
|
|