mlx5hws_is_supported(9)
π mlx5hws_is_supported(9) β from the Kernel API Manual, bestie π
okay so real talk, this is a kernel API page and it's genuinely one of the shortest ones you will ever meet, so likeβ¦ enjoy it? it's giving "little function, big job" energy ngl π
β¨ NAME β¨
mlx5hws_is_supported β the vibe-check function. it straight up checks whether HWS is supported, periodt.
πΈ SYNOPSIS πΈ
bool mlx5hws_is_supported (struct mlx5_core_dev *mdev );
like, that's it. that's the whole signature. so clean, so minimal, main character energy fr π
π¦ ARGUMENTS π¦
mdevβ the device you want to check. that's the whole assignment, bestie. hand it the device, let it do its thing π«Ά
β RETURN β
trueβ if it's supported. slay, you're good to go β¨falseβ if it's not. no cap, that's the whole answer π
this one returns a plain bool, so don't go looking for an error code or anything fancy. it either is or it isn't, iykyk π
π SEE ALSO π
the kernel file lives right here, and honestly go read it, it's iconic:
./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h
and here's the whole friend group, because apparently this function rolls deep:
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_get_dev(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)
like i said. deep bench. π
and that's the whole page, bestie β written by the kernel docs girlies, source path starts ./drivers/net/ethernet/mellanoβ¦ (yeah it's truncated in the footer, don't come for me π), dated October 2026, and it's page mlx5hws_is_supported(9) of the Kernel API Manual. 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