mlx5_vf_get_core_dev(9)
π
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 π
- Kernel file
./drivers/net/ethernet/mellanox/mlx5/core/main.c mlx5_vf_put_core_dev(9)
Source/version: ./drivers/net/ethernet/mellano... π©· dated October 2026 ποΈ. mwah, bye bestie πβ¨
π¦ 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