Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[programmierung] zugriff auf ramdisk bzw. shared memory aus
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
siliconburner
Guru
Guru


Joined: 02 May 2003
Posts: 300

PostPosted: Sat Mar 06, 2004 2:32 pm    Post subject: [programmierung] zugriff auf ramdisk bzw. shared memory aus Reply with quote

hi,
kann man aus der bash heraus auf die ramdisk oder auf das shared memory zugreifen wie auf eine datei? bzw. eine "eigene" ramdisk anlege, aus einem c-programm heraus
ich hab dazu nur dinge gefunden zum booten und auf shm mit pointern, aber ich möchte in c mit system("df -k > /tmp/cfsm_tmp") nicht direkt auf die platte schreiben, sondern halt ins ram um die performance zu erhöhen und nicht immer auf die "lahme" platte zugreifen.

thnx
_________________
living in /dev/null
Back to top
View user's profile Send private message
rmorszeck
n00b
n00b


Joined: 05 Jan 2004
Posts: 74

PostPosted: Sat Mar 06, 2004 4:50 pm    Post subject: Reply with quote

Google ist dein Freund und Helfer in der Not... www.google.de
_________________
All Systems with Gnome & Ethernet-Cards:
GentooLinux2005.1 (stage2, gentoo-dev-sources 2.6.12-r8), AthlonXP 2600+ DDR333/1024MB, NVidia5200@128MB
Back to top
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6378
Location: Graz / EU

PostPosted: Sat Mar 06, 2004 4:57 pm    Post subject: Reply with quote

/dev/shm ist eine Ramdisk (starke Vereinfachung, genaueres siehe irgendeine Doku dazu ;)). Also einfach nach /dev/shm/foo.bar schreiben. Vielleicht hilft dir das ja.
Back to top
View user's profile Send private message
siliconburner
Guru
Guru


Joined: 02 May 2003
Posts: 300

PostPosted: Sun Mar 07, 2004 3:14 am    Post subject: Reply with quote

werds mal testen. thnx
google hat mir halt nicht geholfen.
_________________
living in /dev/null
Back to top
View user's profile Send private message
Starfox
Tux's lil' helper
Tux's lil' helper


Joined: 04 Sep 2002
Posts: 93

PostPosted: Sun Mar 07, 2004 7:18 pm    Post subject: Reply with quote

rmorszeck wrote:
Google ist dein Freund und Helfer in der Not... www.google.de


Klasse Post! wenn es mehr solche posts wie diesen geben würde, dann könnten wir das forum bald dicht machen! :KOPFSCHÜTEL:
Back to top
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6378
Location: Graz / EU

PostPosted: Mon Mar 08, 2004 2:19 am    Post subject: Reply with quote

Juhu, am Besten starten wir jetzt einen Flamewar deswegen! :twisted:

Oder besser doch nicht...
Back to top
View user's profile Send private message
siliconburner
Guru
Guru


Joined: 02 May 2003
Posts: 300

PostPosted: Mon Mar 08, 2004 4:00 am    Post subject: Reply with quote

@amne thnx it funzt. einfach wie ein normales verzeichnis benutzen
_________________
living in /dev/null
Back to top
View user's profile Send private message
DerMojo
Guru
Guru


Joined: 14 Aug 2003
Posts: 395
Location: Germany

PostPosted: Mon Mar 08, 2004 10:11 am    Post subject: Reply with quote

Gibt es eigentlich auch ne clevere Methode, an die Ausgabe von nem Programm zu kommen als über Umleitung?
_________________
To err is human, to forgive, beyond the scope of the Operating System.
Back to top
View user's profile Send private message
siliconburner
Guru
Guru


Joined: 02 May 2003
Posts: 300

PostPosted: Mon Mar 08, 2004 12:30 pm    Post subject: Reply with quote

hab da auch schon programme durchgescannt und gesucht, eber scheint die einfachste zu sein.
zheoretisch könnte es vielleicht gehen, über ne pipe die daten ans das eigene (vom eigenen prog aufgerufen) prog zu schicken. habs aber noch nicht versucht irgendwie zum laufen zu bringen, da ich (noch) nicht soviel erfahrung in c habe
_________________
living in /dev/null
Back to top
View user's profile Send private message
DerMojo
Guru
Guru


Joined: 14 Aug 2003
Posts: 395
Location: Germany

PostPosted: Mon Mar 08, 2004 5:51 pm    Post subject: Reply with quote

siliconburner wrote:
habs aber noch nicht versucht irgendwie zum laufen zu bringen, da ich (noch) nicht soviel erfahrung in c habe

dito! & danke!
_________________
To err is human, to forgive, beyond the scope of the Operating System.
Back to top
View user's profile Send private message
siliconburner
Guru
Guru


Joined: 02 May 2003
Posts: 300

PostPosted: Mon Mar 08, 2004 7:24 pm    Post subject: Reply with quote

@dermojo wenn du eine findest poste sie doch bitte. thnx
_________________
living in /dev/null
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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