hsi_flush(9)
π hsi_flush(9) β the Kernel API Manual glow-up you didn't know you needed π
okay so bestie, welcome to hsi_flush(9) from the Kernel API Manual β yes that's the manual name, no you can't sit with us unless you read it. this one's short and sweet and honestly kind of a baddie. let's get into it β¨
π¦ NAME π¦
hsi_flush β flushes, like, all the pending transactions on the client's port. every last one. gone. periodt. π
πΈ SYNOPSIS πΈ
int hsi_flush (struct hsi_client *cl );
that's it. that's the whole signature. she's lowkey minimal and I respect it π«Ά
β ARGUMENTS β
clβ pointer to thestruct hsi_client. that's your client, bestie, the one whose port we're about to clean out π
π₯ DESCRIPTION π₯
kay so here's the vibe: this function will destroy all pending hsi_msg in the port π like, not "politely ask them to leave" β destroy. then it resets the HW port so it's ready to receive and transmit from a clean state. fresh start, clean slate, main character energy only πβ¨
ngl this one's a full reset, so anything still pending in that port is Not Surviving. handle with intention, bestie π
returns -errno on failure, and 0 on success β the classic. if it's 0 we cheer, if it's -errno we cry (affectionately) π
π§ SEE ALSO π§
- the kernel file
./include/linux/hsi/hsi.hβ go read her, she's iconic π struct hsi_channel(9)struct hsi_config(9)struct hsi_board_info(9)struct hsi_client(9)struct hsi_client_driver(9)struct hsi_msg(9)struct hsi_port(9)struct hsi_controller(9)hsi_id(9)hsi_port_id(9)hsi_setup(9)hsi_async_read(9)hsi_async_write(9)hsi_start_tx(9)hsi_stop_tx(9)
like the whole friend group fr fr π―ββοΈ
sign-off szn π this lil gem comes from the source in ./include/linux/hsi, dated October 2026 β and yes, that date is from the future, she's ahead of her time. mwah π stay flushed, stay flawless, iykyk π¦π
π¦ 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