mlx5hws_is_supported(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:

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