ap_sm_recv(9)
π ap_sm_recv(9) β the Kernel API Manual, but make it cute
okay so bestie, welcome to ap_sm_recv β¨ this is a page from the Kernel API Manual, section 9 (that's the kernel-API section, iykyk), and it's short but it matters. Let's get into it π«Ά
πΈ NAME πΈ
ap_sm_recv β receive pending reply messages from an AP queue, but do not change the state of the device π
like. it grabs the replies. it does not touch the device's state. that's the whole vibe check and it passes π
π¦ SYNOPSIS π¦
struct ap_queue_status ap_sm_recv (struct ap_queue *aq );
yep that's it, one function, one argument, returns a struct ap_queue_status. no cap. π
β ARGUMENTS β
aqβ pointer to the AP queue π nothing more, nothing less, just a pointer to the queue you're working with.
π DESCRIPTION π
calls it, and it returns one of these three bad boys: AP_SM_WAIT_NONE, AP_SM_WAIT_AGAIN, or AP_SM_WAIT_INTERRUPT π
that's literally the whole description, bestie β those are the return values, those are the options, and that's the tea π
ok real talk: the manpage does not say which one you'll get or when. it just says these are the three possible returns. don't go inventing extra behaviour, that's not the move π
π₯ SEE ALSO π₯
the source file lives at ./drivers/s390/crypto/ap_queue.c in the kernel tree (under ./drivers/s390/crypto), and the squad of related manpages is:
ap_queue_enable_irq(9)__ap_send(9)ap_sm_read(9)ap_sm_write(9)ap_sm_read_write(9)ap_sm_reset(9)ap_sm_reset_wait(9)ap_sm_setirq_wait(9)ap_sm_assoc_wait(9)ap_queue_message(9)ap_queue_usable(9)ap_cancel_message(9)__ap_flush_queue(9)
like, go read all of them, they're the friend group and they all ate ππ
and that's the page!! mwah π
sign-off time π this one comes to you from the kernel source tree path ./drivers/s390/crypto, dated October 2026, and the page itself is ap_sm_recv(9) from the Kernel API Manual. go forth and receive those pending replies, bestie β but remember, leave the device state exactly where you found it π¦β¨
π¦ 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