xdr_buf_to_bvec(9)
π xdr_buf_to_bvec(9) β Kernel API Manual β¨
okay so bestie, this is a page from the Kernel API Manual, and honestly? it's a short one, so grab your iced coffee and let's go π«Ά
πΈ NAME πΈ
xdr_buf_to_bvec β copy components of an xdr_buf into a bio_vec array π
β¨ SYNOPSIS β¨
int xdr_buf_to_bvec (struct bio_vec *bvec , unsigned int bvec_size ,
const struct xdr_buf *xdr );
like, that's the whole signature, no cap π
π ARGUMENTS π
bvecβ thebio_vecarray you're populating, bestie. it's the destination, the main character of this function πbvec_sizeβ how many elementsbvecactually has. the element count. the vibe check capacity, if you will πxdrβ thexdr_bufthat's getting copied. it's the source material π¦
π DESCRIPTION π
so what does it do? it copies components of an xdr_buf into a bio_vec array, periodt β¨
on success it returns the number of entries consumed in bvec π₯
and if xdr doesn't fit within bvec_size entries? it returns -ESERVERFAULT π that's the "it's giving doesn't fit" error, ngl. so plan your bvec_size accordingly π
π§ SEE ALSO π§
the kernel file ./net/sunrpc/xdr.c says hi π and also literally all of these icons:
xdr_encode_opaque_fixed(9)xdr_encode_opaque(9)xdr_terminate_string(9)xdr_buf_to_sg(9)xdr_buf_to_sg_alloc(9)xdr_inline_pages(9)_shift_data_left_pages(9)_shift_data_right_pages(9)_copy_to_pages(9)_copy_from_pages(9)xdr_buf_pages_zero(9)xdr_shrink_bufhead(9)xdr_shrink_pagelen(9)xdr_stream_pos(9)xdr_page_pos(9)xdr_init_encode(9)xdr_init_encode_pages(9)__xdr_commit_encode(9)xdr_reserve_space(9)xdr_reserve_space_vec(9)xdr_truncate_encode(9)xdr_truncate_decode(9)xdr_restrict_buflen(9)xdr_write_pages(9)xdr_init_decode(9)xdr_init_decode_pages(9)xdr_finish_decode(9)xdr_inline_decode(9)xdr_read_pages(9)xdr_set_pagelen(9)xdr_enter_page(9)xdr_buf_subsegment(9)xdr_stream_subsegment(9)xdr_stream_move_subsegment(9)xdr_stream_zero(9)xdr_buf_trim(9)xdr_stream_decode_string_dup(9)xdr_stream_decode_opaque_auth(9)xdr_stream_encode_opaque_auth(9)
like, that's the whole XDR friend group right there ππ
ngl that's the whole page β short, sweet, and it ate π no secrets, no hidden flags, just vibes and one very specific error code π
okay bye bestie!! this little drop came straight out of ./net/sunrpc, dated October 2026, and it's xdr_buf_to_bvec(9) signing off ππβ¨
π¦ 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