mlx5_esw_hold(9)
β¨ mlx5_esw_hold(9) β¨
okay bestie, so this is a page from the Kernel API Manual β yes, we're reading kernel docs for fun now, that's the vibe π
β and it's all about mlx5_esw_hold. Buckle up, it's short and iconic π
πΈ NAME πΈ
mlx5_esw_hold β the function that tries to take a read lock on the esw mode lock. that's it, that's the whole gig π«Ά
π¦ SYNOPSIS π¦
bool mlx5_esw_hold (struct mlx5_core_dev *mdev );
literally one argument, one bool, no drama β¨
π ARGUMENTS π
mdevβ the mlx5 core device. that's your main character right there π
π₯ DESCRIPTION π₯
so the way this works: it should be called by esw resources callers. like, that's the assignment. if you're a caller dealing with esw resources, this is your function, no cap. β¨
π RETURN π
true on success, or false. that's it. binary queen behavior π
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/mellanox/mlx5/core/eswitch.cβ the source itself, go read it iykyk π mlx5_esw_query_functions(9)mlx5_eswitch_enable_locked(9)mlx5_eswitch_enable(9)mlx5_esw_release(9)mlx5_esw_get(9)mlx5_esw_put(9)mlx5_esw_try_lock(9)mlx5_esw_unlock(9)mlx5_eswitch_get_total_vports(9)mlx5_eswitch_get_core_dev(9)
like, the whole friend group fr fr π«Άβ¨
ngl the footer got a little chopped up in the source (./drivers/net/ethernet/mellano...), but it's repping the same file, and it's dated October 2026 πΈ so yeah, that's the whole page bestie β short, sweet, and absolutely slaying in the kernel tree ππ
π¦ 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