i2c_put_dma_safe_msg_buf(9)
π i2c_put_dma_safe_msg_buf(9) π
okay so bestie, welcome to the Kernel API Manual β this one's about i2c_put_dma_safe_msg_buf, and it's literally the cleanup arc of the DMA safe message buffer saga π
β¨ NAME β¨
i2c_put_dma_safe_msg_buf β release the DMA safe buffer and sync it back up with the i2c_msg π«Ά
πΈ SYNOPSIS πΈ
void i2c_put_dma_safe_msg_buf (u8 *buf , struct i2c_msg *msg , bool xferred );
no cap, that's the whole signature. returns void because it's a release function, she doesn't owe you a status code π
π¦ ARGUMENTS π¦
bufβ the buffer you got fromi2c_get_dma_safe_msg_buf. and yes, it may beNULLβ that's allowed, she's flexible like that πmsgβ the message that this buffer corresponds to. they're a matched set, iykyk πxferredβ abooltelling you if the message was actually transferred. true = it went through, false = it did not. simple as that fr fr β
π SEE ALSO π
this is the part where the friend group shows up. the whole squad, in the kernel file ./drivers/i2c/i2c-core-base.c:
i2c_verify_client(9)i2c_adapter_lock_bus(9)i2c_adapter_trylock_bus(9)i2c_adapter_unlock_bus(9)i2c_new_client_device(9)i2c_unregister_device(9)i2c_find_device_by_fwnode(9)i2c_new_dummy_device(9)devm_i2c_new_dummy_device(9)i2c_new_ancillary_device(9)i2c_verify_adapter(9)i2c_handle_smbus_host_notify(9)i2c_add_adapter(9)i2c_add_numbered_adapter(9)i2c_del_adapter(9)devm_i2c_add_adapter(9)i2c_find_adapter_by_fwnode(9)i2c_get_adapter_by_fwnode(9)i2c_parse_fw_timings(9)i2c_del_driver(9)__i2c_transfer(9)i2c_transfer(9)i2c_transfer_buffer_flags(9)i2c_get_device_id(9)i2c_client_get_device_id(9)i2c_get_dma_safe_msg_buf(9)
like, every single one. no skipping, we don't do that here π and obviously i2c_get_dma_safe_msg_buf(9) is the one that gave you the buffer in the first place β this is her put-it-back counterpart, the duo of all time π§
and that's the whole page, bestie!! go forth and release those buffers responsibly π
source: ./drivers/i2c Β· date: October 2026 Β· this was the i2c_put_dma_safe_msg_buf(9) page from the Kernel API Manual β mwah, catch you on the next manpage ππ
π¦ 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