Hi Johannes,

You cannot do it because it will not work for KERNEL and PROTECTED mode.

We need to create a hotplug/udev for NuttX (just joking)... Well, you
can use some signal to notify mount/umount that the USB Thumb driver
was inserted/removed.

BR,

Alan

On 8/6/20, Schock, Johannes - NIVUS GmbH <johannes.sch...@nivus.com> wrote:
> Hello,
> just a short question: I'd like to have my USB stick attached to USB high
> speed host automounted as vfat.
> Would it be acceptable to call mount/umount directly in the
> usbhost_storage.c where the blockdriver is registered/unregistered?
> For sure switchable with Kconfig options.
> I tried to setup a fs_automount instance, but I lack an
> IRQ/callback/connectionstate from host or msc I could use.
>
> Thanks, Johannes
>
>

Reply via email to