LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 05-08-2007, 07:03 AM   #1
yantai
LQ Newbie
 
Registered: May 2007
Posts: 6

Rep: Reputation: 0
Wink NVM Non-volatile Memory access compent (API)


Is there any package that provides APIs for the developer/user to write their file/data to Non-volatile Memory such as flash? Basically, I want parts of my file system running on RAM while for those data which requires high security/needs to keep, I want to write them into flash. How would I be able to do these in my program?
 
Old 05-09-2007, 05:22 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 64
Are you using linux? Generally, a device driver takes care of making whatever hardware you are using appear as a block device or similar. From there, you just use open() and read()/write() (or whatever other I/O you prefer). If you’re talking about the system’s CMOS ram (which it doesn’t look like), use the kernel nvram driver to create the block device /dev/nvram.
 
Old 05-11-2007, 05:24 AM   #3
yantai
LQ Newbie
 
Registered: May 2007
Posts: 6

Original Poster
Rep: Reputation: 0
write to a read-only fs

Yes, it is in linux. I mount the flash as a read-only filesystem (squashfs). But I want to do write() operation in order to save some data on to the flash. And it doesn't seem that write() will function on a read-only filesystem. How could I walk around this?
 
Old 05-11-2007, 02:17 PM   #4
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 64
Uhh… use a read/write filesystem? Am I missing something here?
 
  


Reply

Tags
memory


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
volatile kalleanka Programming 2 08-17-2006 09:38 AM
process and memory access phoenix7 Linux - Software 4 08-30-2005 11:25 AM
Shell Script access API treotan Linux - General 1 08-22-2005 11:48 AM
Direct Memory Access with C NCC-1701&NCC-1701-D Programming 12 06-20-2005 01:26 AM
RH 8.0 Mapping Virtual Memory to get access to VMIC Reflective Memory PCI card. Merlin53 Linux - Hardware 0 05-05-2003 01:50 PM


All times are GMT -5. The time now is 06:40 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration