mlx5hws_action_get_dev(9)
π mlx5hws_action_get_dev(9)
okay so welcome to the Kernel API Manual, bestie β this one's short and sweet, no cap. It's mlx5hws_action_get_dev, and it does exactly one thing. One. Singular. Main character energy of a function that knows its purpose and isn't about to overcomplicate things π
β¨ NAME β¨
mlx5hws_action_get_dev β get the mlx5 core device. that's it. that's the whole vibe π¦
β¨ SYNOPSIS β¨
struct mlx5_core_dev * mlx5hws_action_get_dev (struct mlx5hws_action
*action );
like look at that signature, it's giving "I have one job and I do it flawlessly" π
β¨ ARGUMENTS β¨
actionβ the action you wanna pull the device out of. that's the whole input, bestie, hand it over and we're done πΈ
β¨ RETURN β¨
it hands you back the mlx5 core device β the actual struct mlx5_core_dev *. gorgeous. iconic. no surprises π«Ά
β¨ SEE ALSO β¨
fr fr go read the kernel file first, it's the source of truth:
./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h
and then the whole friend group, in order, don't skip anyone π:
mlx5hws_is_supported(9),mlx5hws_context_open(9),mlx5hws_context_close(9),mlx5hws_context_set_peer(9)mlx5hws_table_create(9),mlx5hws_table_destroy(9),mlx5hws_table_get_id(9),mlx5hws_table_set_default_miss(9)mlx5hws_match_template_create(9),mlx5hws_match_template_destroy(9),mlx5hws_action_template_create(9),mlx5hws_action_template_destroy(9)mlx5hws_matcher_create(9),mlx5hws_matcher_destroy(9),mlx5hws_matcher_attach_at(9),mlx5hws_matcher_resize_set_target(9),mlx5hws_matcher_resize_rule_move(9)mlx5hws_rule_create(9),mlx5hws_rule_destroy(9),mlx5hws_rule_action_update(9)mlx5hws_action_get_type(9),mlx5hws_action_create_dest_drop(9),mlx5hws_action_create_default_miss(9),mlx5hws_action_create_dest_table(9),mlx5hws_action_create_dest_table_num(9),mlx5hws_action_create_dest_match_range(9),mlx5hws_action_create_flow_sampler(9),mlx5hws_action_create_dest_vport(9),mlx5hws_action_create_tag(9),mlx5hws_action_create_counter(9),mlx5hws_action_create_reformat(9),mlx5hws_action_create_modify_header(9),mlx5hws_action_create_aso_meter(9),mlx5hws_action_create_pop_vlan(9),mlx5hws_action_create_push_vlan(9),mlx5hws_action_create_dest_array(9),mlx5hws_action_create_insert_header(9),mlx5hws_action_create_remove_header(9),mlx5hws_action_create_last(9),mlx5hws_action_destroy(9)mlx5hws_send_queue_poll(9),mlx5hws_send_queue_action(9),mlx5hws_debug_dump(9)mlx5hws_bwc_matcher_create(9),mlx5hws_bwc_matcher_destroy(9),mlx5hws_bwc_rule_create(9),mlx5hws_bwc_rule_destroy(9),mlx5hws_bwc_rule_action_update(9)
iykyk β that's the entire hws squad, so if you're lost, you're literally one click away from not being lost πβ¨
and that's the page, bestie!! slay π§ this cutie dropped from ./drivers/net/ethernet/mellano... back in October 2026, and yeah the version line got a lil truncated in the excerpt but that's the vibe fr fr. mwah π π π
π¦ 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