History

usb: gadget: f_fs: Document eventfd effect on descriptor format.

When FUNCTIONFS_EVENTFD flag is set, __ffs_data_got_descs reads a 32bits, little-endian value right after the fixed structure header, and passes it to eventfd_ctx_fdget. Document this. Also, rephrase a comment to be affirmative about the role of string descriptor at index 0. Ref: USB 2.0 spec paragraph "9.6.7 String", and also checked to still be current in USB 3.0 spec paragraph "9.6.9 String".

Vincent Pelletier committed 9 years ago

Commit 96a420d1 parent 7e4da3f2 files · +3 −2Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/usb/functionfs.h+1−0
@@ -93,6 +93,7 @@ struct usb_ext_prop_desc { · 92 unmodified lines
9393 * | 0 | magic | LE32 | FUNCTIONFS_DESCRIPTORS_MAGIC_V2 |
9494 * | 4 | length | LE32 | length of the whole data chunk |
9595 * | 8 | flags | LE32 | combination of functionfs_flags |
96+ * | | eventfd | LE32 | eventfd file descriptor |
9697 * | | fs_count | LE32 | number of full-speed descriptors |
9798 * | | hs_count | LE32 | number of high-speed descriptors |
9899 * | | ss_count | LE32 | number of super-speed descriptors |

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t