[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <C6DE438F.127DA%brian@visionpro.com>
Date: Tue, 22 Sep 2009 09:04:15 -0700
From: Brian McGrew <brian@...ionpro.com>
To: <linux-kernel@...r.kernel.org>
Subject: (un)mount ramfs from C code
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists