usb_gstrings_attach man page on OpenSuSE

Man page or keyword search:  
man Server   25941 pages
apropos Keyword Search (all sections)
Output format
OpenSuSE logo
[printable version]

USB_GSTRINGS_ATTACH(9)	    Kernel Mode Gadget API	USB_GSTRINGS_ATTACH(9)

NAME
       usb_gstrings_attach - attach gadget strings to a cdev and assign ids

SYNOPSIS
       struct usb_string *
					       usb_gstrings_attach(struct usb_composite_dev * cdev,
					       struct usb_gadget_strings ** sp,
					       unsigned n_strings);

ARGUMENTS
       cdev
	   the device whose string descriptor IDs are being allocated and
	   attached.

       sp
	   an array of usb_gadget_strings to attach.

       n_strings
	   number of entries in each usb_strings array (sp[]->strings)

DESCRIPTION
       This function will create a deep copy of usb_gadget_strings and
       usb_string and attach it to the cdev. The actual string (usb_string.s)
       will not be copied but only a referenced will be made. The struct
       usb_gadget_strings array may contain multiple languges and should be
       NULL terminated. The ->language pointer of each struct
       usb_gadget_strings has to contain the same amount of entries.

FOR INSTANCE
       sp[0] is en-US, sp[1] is es-ES. It is expected that the first
       usb_string entry of es-ES containts the translation of the first
       usb_string entry of en-US. Therefore both entries become the same id
       assign.

AUTHOR
       David Brownell <dbrownell@users.sourceforge.net>
	   Author.

COPYRIGHT
Kernel Hackers Manual 3.11	 November 2013		USB_GSTRINGS_ATTACH(9)
[top]

List of man pages available for OpenSuSE

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net