lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Thu, 20 Dec 2007 10:15:33 +0000
From:	Russell King - ARM Linux <linux@....linux.org.uk>
To:	Pierre Savary <pierre.savary@...link.fr>
Cc:	linux-arm-kernel@...ts.arm.linux.org.uk,
	linux-kernel@...r.kernel.org
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.
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ