LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices



Reply
 
Search this Thread
Old 08-25-2010, 07:29 AM   #1
zvivered
Member
 
Registered: Sep 2007
Posts: 119

Rep: Reputation: 15
Write data from user level to RAM file


Hi,

I'm using vanilla 2.6.27.35 with busybox on a Pentium M SBC.

What RAM based file system should I use to print messages from a user level application to a file (which is on RAM) ?

Can I use "proc" for this purpose ?

Thanks.
 
Old 08-25-2010, 09:36 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
/proc is a virtual filesystem provided by the kernel to transport key info to userspace, and occasionally from userspace to the kernel. I have also been search for a filesystem to put on an NVRAM memory segment. So far, my best thought is to create my own simple filesystem back-end in userspace, using fuse as the front end. I was sure there must be a better way, but so far, I haven't found anything. My application is for non-volatile storage on a diskless SBC; sounds similar to your application.
--- rod.
 
Old 08-27-2010, 01:10 AM   #3
zvivered
Member
 
Registered: Sep 2007
Posts: 119

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by theNbomr View Post
/proc is a virtual filesystem provided by the kernel to transport key info to userspace, and occasionally from userspace to the kernel. I have also been search for a filesystem to put on an NVRAM memory segment. So far, my best thought is to create my own simple filesystem back-end in userspace, using fuse as the front end. I was sure there must be a better way, but so far, I haven't found anything. My application is for non-volatile storage on a diskless SBC; sounds similar to your application.
--- rod.
I think I mislead you. I do not need a nanvolatile media.
just a file located in RAM that will hold data till reboot/shutdown.
What is the optimal way to do it ?
Thanks.
 
Old 08-27-2010, 03:23 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,491

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
"optimal" is highly subjective.
Use tmpfs - you don't even need to do a mkfs on it, just create files on it.

Last edited by syg00; 08-27-2010 at 03:34 AM.
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
replace a file in user level munna_dude Programming 1 09-02-2007 07:01 AM
replace a file in user level munna_dude Programming 6 09-01-2007 04:54 PM
All user configuration data reset + weird RAM errors amhso Linux - Software 2 12-16-2006 06:53 PM
convert packet level pcap captures to flow level data hedpe Linux - Networking 1 07-27-2006 03:56 PM


All times are GMT -5. The time now is 09:00 AM.

Main Menu
Advertisement
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 Google+: linuxquestions
Open Source Consulting | Domain Registration