fc_vport_setup(9)
β¨ fc_vport_setup(9) β the Kernel API Manual glow-up β¨
okay so bestie, welcome to fc_vport_setup(9) π
this is a page from the Kernel API Manual, and it's all about spinning up a Fibre Channel virtual port. literally creating a whole little vport from scratch, no cap π¦
πΈ SYNOPSIS πΈ
int fc_vport_setup (struct Scsi_Host *shost , int channel , struct
device *pdev , struct fc_vport_identifiers *ids , struct fc_vport
**ret_vport );
it's giving "one function, five arguments, zero chill." returns an int, periodt β¨
π ARGUMENTS π
okay so here's who's who in this group chat:
shostβ the scsi host that this virtual port is connected to. like, the main character host energy πchannelβ the channel on theshostport it's connected to πpdevβ the parent device for the vport. yes, every vport has a parent, we love a family dynamic π«Άidsβ all the identifying deets for the virtual port: the world wide names, the FC4 port roles, etc. basically its whole personality πret_vportβ a pointer to the created vport. so you can find your new baby later ππ
π DESCRIPTION π
So what does it actually do? It allocates and creates the vport structure, then calls the parent host to instantiate the vport β and that wraps up with class and sysfs creation. it's giving "full lifecycle, handled." ate and left no crumbs π₯
π NOTES π
heads up bestie: this routine assumes no locks are held on entry. so like, don't come in holding any locks, fr fr π
β SEE ALSO β
Kernel file ./drivers/scsi/scsi_transport_fc.c. and the whole squad, in order, because we don't skip anyone in this house π«Ά
fc_get_event_number(9)fc_host_post_fc_event(9)fc_host_post_event(9)fc_host_post_vendor_event(9)fc_find_rport_by_wwpn(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_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)
and that's the page, bestie π§π coming at you from ./drivers/scsi, dated October 2026, and yes we're still out here reading fc_vport_setup(9) in the year 2026 because kernel docs are forever β stay hydrated, hold no locks on entry, and slay π
β¨
π¦ 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