bnx2x_exe_queue_add(9)
π bnx2x_exe_queue_add β kernel API manual, bestie edition π
okay so real talk, this is a page straight out of the Kernel API Manual (bnx2x_exe_queue_add(9), section 9, the kernel internals girlies) and it's literally about shoving a new element onto an execution queue. tiny function, big job. let's get into it β¨
πΈ NAME πΈ
bnx2x_exe_queue_add β add a new element to the execution queue. that's it. that's the gig. π
π¦ SYNOPSIS π¦
int bnx2x_exe_queue_add (struct bnx2x *bp , struct bnx2x_exe_queue_obj
*o , struct bnx2x_exeq_elem *elem , bool restore );
not me copying the line break exactly as the manpage had it β yes bestie, the wrap is canon, we leave it alone π«Ά
π ARGUMENTS π
bpβ the driver handle. your whole personality in one pointer, the bnx2x device context itself πoβ the queue. the actualstruct bnx2x_exe_queue_objwe're adding into, iykykelemβ new command to add. this is thestruct bnx2x_exeq_elem *you're handing over πrestoreβtruemeans do not optimize the command. like, keep it exactly as-is, no glow-up, no trimming. periodt β¨
π DESCRIPTION π
okay so here's the tea: if the element gets optimized, or if it's illegal β this function frees it. no cap, that's the whole description. so don't go using elem after it's been freed, bestie, that's giving use-after-free and we do not stan ππ
β οΈ heads up: optimized or illegal elements get freed by this function. that's the documented behaviour, not me being dramatic π
π SEE ALSO π
the friend group. the whole group chat. every single one of these little icons π
- Kernel file
./drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_exe_queue_init(9),bnx2x_exe_queue_step(9),bnx2x_state_wait(9),__bnx2x_vlan_mac_h_write_trylock(9),__bnx2x_vlan_mac_h_exec_pending(9),__bnx2x_vlan_mac_h_pend(9),__bnx2x_vlan_mac_h_write_unlock(9),__bnx2x_vlan_mac_h_read_lock(9),bnx2x_vlan_mac_h_read_lock(9),__bnx2x_vlan_mac_h_read_unlock(9),bnx2x_vlan_mac_h_read_unlock(9),bnx2x_vlan_mac_set_cmd_hdr_e2(9),bnx2x_vlan_mac_set_rdata_hdr_e2(9),bnx2x_vlan_mac_set_rdata_hdr_e1x(9),bnx2x_set_one_mac_e1x(9),bnx2x_set_one_vlan_mac_e1h(9),bnx2x_vlan_mac_restore(9),bnx2x_validate_vlan_mac_add(9),bnx2x_validate_vlan_mac_del(9),bnx2x_validate_vlan_mac_move(9),bnx2x_wait_vlan_mac(9),bnx2x_complete_vlan_mac(9),bnx2x_optimize_vlan_mac(9),bnx2x_vlan_mac_get_registry_elem(9),bnx2x_execute_vlan_mac(9),bnx2x_config_vlan_mac(9),bnx2x_vlan_mac_del_all(9),bnx2x_mcast_get_next_bin(9),bnx2x_mcast_clear_first_bin(9),bnx2x_mcast_handle_restore_cmd_e2(9),bnx2x_mcast_handle_current_cmd(9),bnx2x_mcast_set_rdata_hdr_e2(9),bnx2x_mcast_refresh_registry_e2(9),bnx2x_mcast_set_rdata_hdr_e1(9),bnx2x_mcast_handle_restore_cmd_e1(9),bnx2x_get_fw_mac_addr(9),bnx2x_mcast_refresh_registry_e1(9),__atomic_add_ifless(9),__atomic_dec_ifmoe(9),bnx2x_init_credit_pool(9),bnx2x_debug_print_ind_table(9),bnx2x_setup_rss(9),bnx2x_queue_state_change(9),bnx2x_queue_comp_cmd(9),bnx2x_q_init(9),bnx2x_q_send_deactivate(9),bnx2x_q_send_activate(9),bnx2x_queue_chk_transition(9),bnx2x_func_state_change_comp(9),bnx2x_func_comp_cmd(9),bnx2x_func_chk_transition(9),bnx2x_func_init_func(9),bnx2x_func_init_port(9),bnx2x_func_init_cmn_chip(9),bnx2x_func_init_cmn(9),bnx2x_func_reset_func(9),bnx2x_func_reset_port(9),bnx2x_func_reset_cmn(9),bnx2x_func_state_change(9)
and that's the page, bestie π source/version footer was sitting down there reading ./drivers/net/ethernet/broadco... dated October 2026, and yes the path is literally truncated with an ellipsis in the original β we respect the lore πβ¨ mwah, go read bnx2x_exe_queue_init(9) next, it's giving prequel π¦π
π¦ 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