Skip to content

Commit cfced12

Browse files
kudureranganathtorvalds
authored andcommitted
include/linux/pipe_fs_i: Add htmldoc annotation for "head_tail" member
Add htmldoc annotation for the newly introduced "head_tail" member describing it to be a union of the pipe_inode_info's @Head and @tail members. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Closes: https://lore.kernel.org/lkml/20250305204609.5e64768e@canb.auug.org.au/ Fixes: 3d25216 ("fs/pipe: Read pipe->{head,tail} atomically outside pipe->mutex") Signed-off-by: K Prateek Nayak <kprateek.nayak@amd.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent c27c66a commit cfced12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/pipe_fs_i.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ union pipe_index {
6565
* @wr_wait: writer wait point in case of full pipe
6666
* @head: The point of buffer production
6767
* @tail: The point of buffer consumption
68+
* @head_tail: unsigned long union of @head and @tail
6869
* @note_loss: The next read() should insert a data-lost message
6970
* @max_usage: The maximum number of slots that may be used in the ring
7071
* @ring_size: total number of buffers (should be a power of 2)

0 commit comments

Comments
 (0)