Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: Documentation/usb/anchors.txt #2

This adds Documentation for the extensions of the anchor API.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Oliver Neukum and committed by
Greg Kroah-Hartman
d1b19440 4a511bc3

+17
+17
Documentation/usb/anchors.txt
··· 52 52 the call returns. They may be unlinked later but will be unlinked in 53 53 finite time. 54 54 55 + usb_scuttle_anchored_urbs() 56 + --------------------------- 57 + 58 + All URBs of an anchor are unanchored en masse. 59 + 55 60 usb_wait_anchor_empty_timeout() 56 61 ------------------------------- 57 62 ··· 64 59 or a timeout, whichever comes first. Its return value will tell you 65 60 whether the timeout was reached. 66 61 62 + usb_anchor_empty() 63 + ------------------ 67 64 65 + Returns true if no URBs are associated with an anchor. Locking 66 + is the caller's responsibility. 67 + 68 + usb_get_from_anchor() 69 + --------------------- 70 + 71 + Returns the oldest anchored URB of an anchor. The URB is unanchored 72 + and returned with a reference. As you may mix URBs to several 73 + destinations in one anchor you have no guarantee the chronologically 74 + first submitted URB is returned.