Re: [PATCH] usb: gadget: composite: Provide list of registered functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 19, 2015 at 02:17:19PM +0100, Krzysztof Opasiak wrote:
> Driver which provides implementation of some USB functions
> registers usb_function_driver structure in composite framework.
> Function drivers are identifed using registered name.
> 
> When gadget is composed using configfs user must know what
> names has been registered. If function is compiled as a module
> this information can be found in modules.alias file. If
> function is compiled-in, there is no way to discover what
> usb functions are available in currently running kernel.
> 
> Such situation is nothing new for linux kernel.
> Similar situation is with file systems. While mounting user
> can provide an fs type argument using -t option in mount.
> Those type names are registered by drivers. To make those names
> discoverable there is a /proc/filesystems which
> exports the list of currently registered file systems.
> 
> This patch adds /proc/usb-functions attribute which exports
> the list of currently registered function drivers.
> This allows user to discover list of both compiled-in functions
> and from loaded kernel modules.
> 
> Signed-off-by: Krzysztof Opasiak <k.opasiak@xxxxxxxxxxx>

you need to document the new file under Documentation/ABI/

-- 
balbi

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux