On Mon, Nov 26 2012, Alan Stern wrote:
> In your example, what files would appear under under
> /functions/storage?  I gather that the "storage" part is just a
> placeholder name with no real meaning.  The meaning is conveyed
> when the user writes "mass_storage" to /functions/storage/name.
>
> When this happens, would the additional files created in this
> directory be those required specifically by the mass_storage function
> driver?  And nothing else?

Specifically by a single instance.

> On the other hand, why have two separate directories for
> /functions/ttyS0 and /functions/ttyS1?  Aren't these two different
> instances of the same function?  So if the user then writes "acm"  to
> /functions/ttyS0/name and /functions/ttyS1/name, wouldn't your
> framework get an error when it tried to load the acm function module a
> second time?

This would just create another instance of the same function.


This actually gave me an idea.  Why not:

mkdir functions/acm       # the f_acm module is loaded
mkdir functions/acm/blah  # instance of the function is created

-- 
Best regards,                                         _     _
.o. | Liege of Serenely Enlightened Majesty of      o' \,=./ `o
..o | Computer Science,  Michał “mina86” Nazarewicz    (o o)
ooo +----<email/xmpp: m...@google.com>--------------ooO--(_)--Ooo--

Attachment: pgpApC9ftTedD.pgp
Description: PGP signature

Reply via email to