fc_vport_id_lookup(9)
β¨ fc_vport_id_lookup(9) β¨
okay bestie, welcome to the Kernel API Manual π this one's a lil function called fc_vport_id_lookup, and honestly? it's giving matchmaker energy. you hand it a fabric ID and it goes looking for the NPIV lport that vibes with it. iykyk π
πΈ NAME πΈ
fc_vport_id_lookup β find the NPIV lport that matches a given fabric ID ππ
like, it's literally a lookup. you want the lport for this fabric ID? boom, here she is. main character energy fr fr π
π¦ SYNOPSIS π¦
struct fc_lport * fc_vport_id_lookup (struct fc_lport *n_port , u32 port_id );
so she takes two things and gives you back a struct fc_lport * β no cap, that's the whole vibe check π«Ά
π ARGUMENTS π
n_portβ the top level N_Port which may have multiple NPIV VN_Ports π§ββοΈ think of it as the parent friend who's got a whole group chat of VN_Ports under her wing. this is the one you're searching within.port_idβ the fabric ID to find a match for π― the thing you're hunting for. she's gonna go see who matches.
β RETURN β
matching lport pointer π β or NULL if there is no match ππ
fr fr, always check forNULLbefore you go dereferencing, bestie. no match means no match, and she will absolutely hand you aNULLand walk away π
π SEE ALSO π
- Kernel file
./drivers/scsi/libfc/fc_npiv.cπ libfc_vport_create(9)__fc_vport_setlink(9)fc_vport_setlink(9)fc_vports_linkchange(9)
all the sibling functions, the whole little libfc family reunion π«Άβ¨ go read them too, they're iconic in their own right π
and that's the page, bestie!! π¦ this lil slice of the Kernel API Manual (section 9, fc_vport_id_lookup(9) β yes she has her own number, queen behavior π) lives down in ./drivers/scsi/libfc and the version/date on this one is October 2026. periodt. πβ¨π
π¦ 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