UNION PIPE_INDEX(9)
๐ union pipe_index(9) ๐
straight outta the Kernel API Manual, it's union pipe_index(9) โ the page all about pipe indeces (yes, spelled like that, and we're keeping it because it's iconic). ๐
๐ฆ NAME ๐ฆ
union pipe_index โ pipe indeces.
โจ SYNOPSIS โจ
okay so here's the whole struct, bestie, copied exactly:
union pipe_index {
unsigned long head_tail;
struct {
pipe_index_t head;
pipe_index_t tail;
};
};
๐ธ Members ๐ธ
the field breakdown, no cap:
head_tailโ anunsigned longunion ofheadandtailโ one field carrying the whole situation.{unnamed_struct}โ anonymous. no name, just mystery and vibes.headโ the point of buffer production. periodt.tailโ the point of buffer consumption. also periodt.
๐ฎ SEE ALSO ๐ฎ
the whole friend group is right here:
- Kernel file
./include/linux/pipe_fs_i.h struct pipe_buffer(9)struct anon_pipe_prealloc(9)struct pipe_inode_info(9)pipe_has_watch_queue(9)pipe_occupancy(9)pipe_empty(9)pipe_full(9)pipe_is_full(9)pipe_is_empty(9)pipe_buf_usage(9)pipe_buf(9)pipe_head_buf(9)pipe_buf_get(9)pipe_buf_release(9)pipe_buf_confirm(9)pipe_buf_try_steal(9)
signed off with love from ./include/linux โ October 2026 edition ๐โจ
๐ฆ 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