ipc_protocol...d_tail_index(9)
π ipc_protocol_get_head_tail_index(9) β Kernel API Manual β¨
okay so bestie, welcome to the <rainbow>Kernel API Manual</rainbow> entry for ipc_protocol...d_tail_index(9) β yes the title got truncated, it's giving βοΈ but we move. the actual function we're obsessing over is ipc_protocol_get_head_tail_index, and it's literally just here to hand you the head and tail pointer indexes of a given pipe. that's it. that's the whole vibe. π
β¨ NAME β¨
ipc_protocol_get_head_tail_index β the function for getting the Head and Tail pointer index of a given pipe π«Ά
πΈ SYNOPSIS πΈ
void ipc_protocol_get_head_tail_index (struct iosm_protocol
*ipc_protocol , struct ipc_pipe *pipe , u32 *head , u32 *tail );
notice it returns void?? yeah she's not giving you a return value, she's giving you pointers. main character energy fr fr. π
π¦ ARGUMENTS π¦
ipc_protocolβ youriosm_protocolinstance, the whole squad's context, no cap.pipeβ the Pipe Instance. the specific pipe we're snooping on πheadβ the head pointer index of the given pipe. she's the front of the line, periodt.tailβ the tail pointer index of the given pipe. she's bringing up the rear, iconic behaviour honestly π
π SEE ALSO π
bestie there is a whole extended universe here, so buckle up, grab a strawberry π, and let's get into it:
- Kernel file
./drivers/net/wwan/iosm/iosm_ipc_protocol_ops.h enum ipc_mem_td_cs(9)enum ipc_mem_msg_cs(9)struct ipc_msg_prep_args_pipe(9)struct ipc_msg_prep_args_sleep(9)struct ipc_msg_prep_feature_set(9)struct ipc_msg_prep_map(9)struct ipc_msg_prep_unmap(9)union ipc_msg_prep_args(9)enum ipc_msg_prep_type(9)struct ipc_rsp(9)enum ipc_mem_msg(9)struct ipc_mem_msg_open_pipe(9)struct ipc_mem_msg_close_pipe(9)struct ipc_mem_msg_abort_pipe(9)struct ipc_mem_msg_host_sleep(9)struct ipc_mem_msg_feature_set(9)struct ipc_mem_msg_common(9)union ipc_mem_msg_entry(9)ipc_protocol_msg_prep(9)ipc_protocol_msg_hp_update(9)ipc_protocol_msg_process(9)ipc_protocol_ul_td_send(9)ipc_protocol_ul_td_process(9)ipc_protocol_dl_td_prepare(9)ipc_protocol_dl_td_process(9)ipc_protocol_get_ipc_status(9)ipc_protocol_pipe_cleanup(9)ipc_protocol_get_ap_exec_stage(9)ipc_protocol_pm_dev_get_sleep_notification(9)
like, that's a full friend group right there π every single one of them is in the ./drivers/net/wwan/iosm cinematic universe, iykyk. go read them too, they're all slay in their own way π₯
ngl, this page is short and sweet β no warnings, no bugs to report, no environment variables, no exit statuses, nothing cursed. just a void function doing her little job. π
okay that's the whole page, bestie β ily, go forth and index those pointers π§ββοΈ
signed off with love from the source tree π ./drivers/net/wwan/iosm, dated October 2026, and yes the footer stubbornly still says ipc_protocol...d_tail_index(9) β she's committed to the bit ππ
π¦ 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