Messages in this thread | | | Date | Thu, 20 Dec 2007 10:15:33 +0000 | From | Russell King - ARM Linux <> | Subject | Re: syscall in a module |
| |
On Thu, Dec 20, 2007 at 10:26:08AM +0100, Pierre Savary wrote: > In fact I have a part (/dev/mmcblk0p5) that I want share with USB gadget > (g_file_storage). But if USB is not connect to a PC, I want that this part > was mounted on my board. An I want unmount this part when the board is > plugged on a PC. > So I need to mount and unmount partition in this module.
Arrange for the USB subsystem to send a uevent, which can then be picked up by userspace to issue the correct command to mount or unmount the partition.
| |