mlx5_esw_try_lock(9)
π NAME π
Okay bestie, welcome to the mlx5_esw_try_lock(9) page β Kernel API Manual energy, but make it cute β¨. This is mlx5_esw_try_lock β take a write lock on esw mode lock. Periodt. π
β¨ SYNOPSIS β¨
int mlx5_esw_try_lock (struct mlx5_eswitch *esw );
π ARGUMENTS π
eswβ eswitch device. Literally the eswitch device, bestie. π¦
πΈ DESCRIPTION πΈ
Should be called by esw mode change routine β thatβs the whole assignment. no cap. π
π₯ RETURN π₯
0β esw mode if successfully locked and refcount is0. slay, locked and clean β¨-EBUSYβ refcount is not0. nope, not today π-EINVALβ In the middle of switching mode or lock is already held. awkward π
π SEE ALSO π
Kernel file ./drivers/net/ethernet/mellanox/mlx5/core/eswitch.c β go read the source, bestie π
mlx5_esw_query_functions(9)mlx5_eswitch_enable_locked(9)mlx5_eswitch_enable(9)mlx5_esw_hold(9)mlx5_esw_release(9)mlx5_esw_get(9)mlx5_esw_put(9)mlx5_esw_unlock(9)mlx5_eswitch_get_total_vports(9)mlx5_eswitch_get_core_dev(9)
Footer source/version and date sign-off: ./drivers/net/ethernet/mellano... Β· October 2026 β bye bestie, 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