fc_queue_work(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– fc_queue_work(9) β€” queue work to the fc_host workqueue πŸ’–

okay so welcome to the fc_queue_work(9) page from the Kernel API Manual, bestie 🫢 this is the lil kernel function that queues work to the fc_host workqueue, and we're gonna read it together like a very technical group chat. no cap.

✨ NAME ✨

fc_queue_work β€” Queue work to the fc_host workqueue. literally the main character of putting work in the workqueue πŸ’…

🌸 SYNOPSIS 🌸

int fc_queue_work (struct Scsi_Host *shost , struct work_struct *work );

πŸ’… ARGUMENTS πŸ’…

  • shost β€” Pointer to Scsi_Host bound to fc_host. πŸŽ€
  • work β€” Work to queue for execution. ✨

πŸŽ€ DESCRIPTION πŸŽ€

the return value is giving the whole story here, bestie:

  • 1 β€” work queued for execution πŸ”₯
  • 0 β€” work is already queued πŸ’…
  • -EINVAL β€” work queue doesn't exist 😭

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/scsi/scsi_transport_fc.c, plus all these besties:

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_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)

okay that's the whole page, bestie 🫢 source/version line: ./drivers/scsi Β· October 2026 Β· fc_queue_work(9). slay πŸ’œ

πŸ“¦ where this page comes from