Ask a question about mtdblock.

Yy Yy yy_hust at yahoo.com.cn
Wed Jun 25 22:38:55 EDT 2003


I want to implement mass storage protocol.
I write a kernel thread to handle the requests from
mass storage protocol.
I don't know how to read/write data from flash memory
by mtdblock in my kernel thread.

Should I call sys_open/sys_read/sys_write to mtdblock
device file (/dev/mtdblock0) to get the data.
Or should I call do_cache_write or do_cache_read to
get the data directly.

And suggestions are welcome.
Thanks a lot
                                              Yy

_________________________________________________________
Do You Yahoo!? 
网恋的诠释:真情还是放纵?
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/netlove



More information about the linux-mtd mailing list