build_rdma_ctx(9)
π build_rdma_ctx(9) β the Kernel API Manual page, bestie edition π
okay so picture this: you're deep in the Kernel API Manual and you hit build_rdma_ctx(9). No stress, I got you. This one's short, sweet, and honestly kinda iconic β it builds the RDMA transform negotiate response context. That's the whole vibe. β¨
πΈ NAME πΈ
build_rdma_ctx β build an RDMA transform negotiate response context π«Ά
β SYNOPSIS β
int build_rdma_ctx (struct smb2_neg_context *ctxt , unsigned long transform_ids );
that's literally it. she's compact. she's efficient. main character energy fr fr π₯
π¦ ARGUMENTS π¦
ctxtβ the response context header you're gonna populate. like, you hand it over and it gets filled in. that's her job πtransform_idsβ a bitmap of transforms that are common to both the client and the server. iykyk β it's the "what do we both speak" list, in bitmap form π§
π RETURN π
returns the encoded negotiate context length. that's the number you get back. no cap, that's the whole return value π
π SEE ALSO π
the kernel file in question is ./fs/smb/server/smb2pdu.c, and here's the entire squad it rolls with β every single one, in order, because we don't do "etc." around here π
smb2_get_ksmbd_tcon(9)smb2_set_err_rsp(9)is_smb2_neg_cmd(9)is_smb2_rsp(9)get_smb2_cmd_val(9)set_smb2_rsp_status(9)init_smb2_neg_rsp(9)smb2_set_rsp_credits(9)init_chained_smb2_rsp(9)is_chained_smb2_message(9)init_smb2_rsp_hdr(9)smb2_allocate_rsp_buf(9)smb2_check_user_session(9)smb2_get_name(9)smb2_get_dos_mode(9)smb3_encryption_negotiated(9)decode_rdma_ctx(9)smb2_handle_negotiate(9)smb2_tree_connect(9)smb2_create_open_flags(9)smb2_tree_disconnect(9)smb2_session_logoff(9)create_smb2_pipe(9)smb2_set_ea(9)smb2_open(9)smb2_populate_readdir_entry(9)buffer_check_err(9)smb2_get_ea(9)smb2_query_info(9)smb2_close_pipe(9)smb2_close(9)smb2_echo(9)smb2_set_info_file(9)smb2_set_info(9)smb2_read_pipe(9)smb2_set_rdma_key(9)smb2_prep_rdma_read(9)smb2_current_req_len(9)check_rdma_desc(9)smb2_parse_rdma_write_transform(9)smb2_read_rdma(9)smb2_read(9)smb2_write_pipe(9)smb2_write_rdma(9)smb2_write(9)smb2_flush(9)smb2_cancel(9)smb2_lock(9)smb2_ioctl(9)smb20_oplock_break_ack(9)smb21_lease_break_ack(9)smb2_oplock_break(9)smb2_notify(9)smb2_is_sign_req(9)smb2_check_sign_req(9)smb2_get_sign_rsp_iov(9)smb2_set_sign_rsp(9)smb3_check_sign_req(9)smb3_set_sign_rsp(9)smb3_preauth_hash_rsp(9)
sixty entries, zero skips, we ate that π
a little note from me to you: this page has no options, no environment variables, no exit statuses, no bugs section. it's just a function, two arguments, and a return value. sometimes simple is the slay π
and that's the page!! π this cutie lives over in ./fs/smb/server, dated October 2026, and she answers to the name build_rdma_ctx(9) β go say hi to her siblings, they're all listed above πβ¨π¦
π¦ 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