public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* (un)mount ramfs from C code
@ 2009-09-22 16:04 Brian McGrew
  2009-09-22 16:26 ` Luciano Rocha
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Brian McGrew @ 2009-09-22 16:04 UTC (permalink / raw)
  To: linux-kernel

Good morning all!

So I'm using a ramfs for temporary files, thank you whoever designed that,
it works great!

I can mkdir, mount, chmoud, readand write and then umount the thing from the
command line just fine.

What I need now is some method from within my C/C++ code to determine if the
ramfs is mounted, if not, then mount it so I can use it and unmount it when
I'm done, without making a system call.

Can this be done?  Is there any access to mount/unmount from C/C++?

-b


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-09-22 19:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-22 16:04 (un)mount ramfs from C code Brian McGrew
2009-09-22 16:26 ` Luciano Rocha
2009-09-22 19:30   ` Brian McGrew
2009-09-22 19:53     ` Tim Walberg
2009-09-22 17:13 ` Nikos Chantziaras
2009-09-22 17:18   ` Nikos Chantziaras
2009-09-22 17:28 ` Matthias Schniedermeyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox