fc_find_rport_by_wwpn(9)
π fc_find_rport_by_wwpn(9) β the kernel API manual, but make it make sense
okay so bestie, welcome to section 9 of the Kernel API Manual β¨ this one's a lil function called fc_find_rport_by_wwpn, and honestly? the name literally tells you everything. it finds the fc_rport pointer for a given wwpn. that's it. that's the gig. π
π¦ NAME
fc_find_rport_by_wwpn β find the fc_rport pointer for a given wwpn
like, you hand it a wwpn, it hands you back the matching fc_rport pointer. matchmaker behavior, fr fr π
β¨ SYNOPSIS
struct fc_rport * fc_find_rport_by_wwpn (struct Scsi_Host *shost , u64
wwpn );
look at that signature. struct fc_rport * coming back at you, two args going in. no cap, it's giving "small function, big responsibility" π
πΈ ARGUMENTS
shostβ the host thefc_rportis associated with. like, which host is this rport even hanging out with? that one. π«Άwwpnβ the wwpn of thefc_rportdevice. the actual identifying vibe you're searching for. π
π NOTES
This routine assumes no locks are held on entry.
read that again, bestie. no locks are held on entry. so if you're out here calling this while holding a lock, that's on you, not the function. locking is your main character moment to handle π
π§ SEE ALSO
buckle up, this list is long and honestly kind of iconic. all of these live in the kernel file ./drivers/scsi/scsi_transport_fc.c π
fc_get_event_number(9)fc_host_post_fc_event(9)fc_host_post_event(9)fc_host_post_vendor_event(9)fc_host_fpin_rcv(9)fc_eh_timed_out(9)fc_queue_work(9)fc_flush_work(9)fc_queue_devloss_work(9)fc_flush_devloss(9)fc_remove_host(9)fc_starget_delete(9)fc_rport_final_delete(9)fc_remote_port_create(9)fc_remote_port_add(9)fc_remote_port_delete(9)fc_remote_port_rolechg(9)fc_timeout_deleted_rport(9)fc_timeout_fail_rport_io(9)fc_scsi_scan_rport(9)fc_block_rport(9)fc_block_scsi_eh(9)fc_vport_setup(9)fc_vport_create(9)fc_vport_terminate(9)fc_vport_sched_delete(9)fc_bsg_job_timeout(9)fc_bsg_host_dispatch(9)fc_bsg_rport_dispatch(9)fc_bsg_hostadd(9)fc_bsg_rportadd(9)fc_bsg_remove(9)
thirty-two entries. i counted. we ate. π₯
okay and finally, the lil sign-off moment π this page comes from ./drivers/scsi, and it's dated October 2026 β so yeah, it's a whole section 9 kernel manual page, future-dated and everything. slay. go find your rports, 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