msg_to_mgmt_sync(9)
π¦ msg_to_mgmt_sync (9) β Kernel API Manual, bestie edition π¦
okay so literally welcome to the msg_to_mgmt_sync page, it's a 9-section kernel API manual entry and we are gonna get through it together, no stress π
β¨ NAME β¨
msg_to_mgmt_sync β the way to send a sync message to mgmt π«Ά like, you send it and you wait, that's the whole vibe.
πΈ SYNOPSIS πΈ
int msg_to_mgmt_sync (struct hinic_pf_to_mgmt *pf_to_mgmt , enum
hinic_mod_type mod , u8 cmd , u8 *buf_in , u16 in_size , u8 *buf_out ,
u16 *out_size , enum mgmt_direction_type direction , u16 resp_msg_id ,
u32 timeout );
she's long, she's gorgeous, she takes ten arguments, periodt π
π ARGUMENTS π
pf_to_mgmtβ the PF to MGMT channel, like the little pipeline the message travels down πmodβ which module in the chip is gonna receive the message, iykykcmdβ the command of the message, aka what you're actually asking forbuf_inβ the msg data itself, the payload, the main character πin_sizeβ how long that msg data is,u16energybuf_outβ the response, where the answer comes back to you πout_sizeβ the length of that response, lowkey important if you wanna read it properlydirectionβ the direction of the original message, which way it was facing when it left π§resp_msg_idβ the msg id to response for, so everybody knows which message we're replying to πtimeoutβ the time-out period of waiting for response, aka how long you're willing to stand there like π before giving up
π DESCRIPTION π
ok so the return values, and this is the whole description so don't blink:
0β Success β¨ slay, it worked, we love to see it- negative β Failure π something went wrong, tragic, but at least you know
ngl that's genuinely all it says. short and iconic, she doesn't ramble. π
π SEE ALSO π
the friend group, the whole squad, fr fr β go read these too:
- the kernel file
./drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.cποΈ hinic_register_mgmt_msg_cb(9)hinic_unregister_mgmt_msg_cb(9)prepare_header(9)prepare_mgmt_cmd(9)mgmt_msg_len(9)send_msg_to_mgmt(9)msg_to_mgmt_async(9)hinic_msg_to_mgmt(9)mgmt_recv_msg_handler(9)mgmt_resp_msg_handler(9)recv_mgmt_msg_handler(9)mgmt_msg_aeqe_handler(9)alloc_recv_msg(9)alloc_msg_buf(9)hinic_pf_to_mgmt_init(9)hinic_pf_to_mgmt_free(9)
sixteen of them bestie, sixteen!! drink some water before you start ππ
and that's the page π¦ mwah, you did amazing. this came from ./drivers/net/ethernet/huawei/... and it's dated October 2026 β go forth and send your sync messages responsibly, love u, bye πβ¨π
π¦ 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