isp1760_udc_select_ep(9)
π isp1760_udc_select_ep(9) β the kernel API manual, bestie edition
okay so picture this: you're deep in the kernel, you've got an isp1760_udc_select_ep situation, and you need someone to explain it like a friend would. that's me. i'm that friend. and yes, this page lives in the Kernel API Manual and it's lowkey iconic.
β¨ NAME β¨
isp1760_udc_select_ep β literally just Select an endpoint for register access. that's the whole vibe. no cap.
π SYNOPSIS π
void isp1760_udc_select_ep (struct isp1760_udc *udc , struct isp1760_ep
*ep );
copy that exactly, bestie β character for character. the way that void is right there at the front? we love a function that returns nothing and knows it. π
πΈ ARGUMENTS πΈ
udcβ a reference to the device controller. like, the whole controller. your main character, fr.epβ the endpoint. the one you're picking. your chosen one. π
π DESCRIPTION π
okay so here's the tea: the ISP1761 endpoint registers are banked. like, there are multiple registers sitting behind one address and you gotta pick which one you're talking to. that's just how it is. π
this function does the picking. it selects the target endpoint for banked register access. one job. does it slay? yes.
and the selection remains valid until whichever of these happens first β gotta be specific, bestie:
- the next call to this function,
- the next direct access to the
EPINDEXregister, or - the next reset.
whichever comes first. no in-between. no "oops i forgot". β
π«Ά also real talk: this bad boy is called with the UDC spinlock held. like, that's the contract. hold the spinlock, then call. please and thank you. don't be that person. π
π¦ SEE ALSO π¦
- Kernel file
./drivers/usb/isp1760/isp1760-udc.cβ the source, the lore, the origin story. go read it if you want the full picture, iykyk. πβ¨
and that's the page, bestie! π thanks for reading, remember to hold that spinlock, and if you ever need the receipts: this page comes out of ./drivers/usb/isp1760, dated October 2026, and it's filed under isp1760_udc_select_ep(9). mwah. πππ«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms