mlx5_esw_try_lock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 is 0. slay, locked and clean ✨
  • -EBUSY β€” refcount is not 0. 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 πŸ“–


Footer source/version and date sign-off: ./drivers/net/ethernet/mellano... Β· October 2026 β€” bye bestie, mwah πŸ’–πŸ«Ά

πŸ“¦ where this page comes from