mlx5_vf_get_core_dev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mlx5_vf_get_core_dev(9) β€” Kernel API Manual ✨

okay so bestie, this is the mlx5_vf_get_core_dev(9) page from the Kernel API Manual. It’s giving β€œgrab the mlx5 core device from a VF PCI device” energy, and yes, there are lock rules. Let’s go. 🫢

πŸŽ€ NAME πŸŽ€

mlx5_vf_get_core_dev β€” get the mlx5 core device from a given VF PCI device if mlx5_core is its driver. periodt. πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

struct mlx5_core_dev * mlx5_vf_get_core_dev (struct pci_dev *pdev );

🌸 ARGUMENTS 🌸

  • pdev β€” the associated PCI device. that’s the one, bestie. πŸŽ€

✨ DESCRIPTION ✨

Upon return, the interface state lock stays held β€” yes, still held β€” so the caller can use it safely. no cap, that’s the whole point. πŸ”₯

Caller must ensure the returned mlx5 device is used for a narrow window and put back with mlx5_vf_put_core_dev immediately once usage is over. like, immediately immediately, bestie. don’t make it weird. 😭

⭐ RETURN ⭐

Pointer to the associated mlx5_core_dev or NULL. That’s it. That’s the return. πŸ’…

🌈 SEE ALSO 🌈


Source/version: ./drivers/net/ethernet/mellano... 🩷 dated October 2026 πŸ—“οΈ. mwah, bye bestie πŸ’‹βœ¨

πŸ“¦ where this page comes from