fc_sdev_init(9)
π fc_sdev_init(9) β the kernel API manual, but make it make sense
okay so bestie, quick vibe check: this is fc_sdev_init, a page from the Kernel API Manual, and it's genuinely one of those tiny functions that does one thing and does it slay. lowkey a whole icon for staying in its lane. let's get into it π«Ά
β¨ NAME β¨
fc_sdev_init β configure the queue depth of a Scsi_Host
like... that's it. that's the job. she sets the queue depth. periodt. π
β¨ SYNOPSIS β¨
int fc_sdev_init (struct scsi_device *sdev );
one function, one argument, returns an int. clean, minimal, no notes. the way she doesn't overcomplicate things? obsessed. π
β¨ ARGUMENTS β¨
sdevβ the SCSI device that identifies the SCSI host. think of it as the little ID card πͺͺ that tells you which host we're talking about. you hand her thesdev, she knows exactly who she's dealing with. no cap.
β¨ DESCRIPTION β¨
so what does she actually do? she configures queue depth based on the host's cmd_per_len. π
and here's the safety net, bestie: if that's not set? no stress, no panic, no drama β we just use the libfc default. she's got a fallback and she's not afraid to use it. πΈ
it's giving "responsible main character energy." π₯
β¨ SEE ALSO β¨
okay this is the part where the friend group shows up and it's a whole crowd. literally everyone's here. take a breath, we're going through the list π―ββοΈ
Kernel file ./drivers/scsi/libfc/fc_fcp.cstruct fc_fcp_internal(9)fc_fcp_pkt_alloc(9)fc_fcp_pkt_release(9)fc_fcp_pkt_hold(9)fc_fcp_pkt_destroy(9)fc_fcp_lock_pkt(9)fc_fcp_unlock_pkt(9)fc_fcp_timer_set(9)fc_fcp_send_abort(9)fc_fcp_retry_cmd(9)fc_fcp_ddp_setup(9)fc_fcp_ddp_done(9)fc_fcp_can_queue_ramp_up(9)fc_fcp_can_queue_ramp_down(9)get_fsp_rec_tov(9)fc_fcp_recv_data(9)fc_fcp_send_data(9)fc_fcp_abts_resp(9)fc_fcp_recv(9)fc_fcp_resp(9)fc_fcp_complete_locked(9)fc_fcp_cleanup_cmd(9)fc_fcp_cleanup_each_cmd(9)fc_fcp_abort_io(9)fc_fcp_pkt_send(9)fc_fcp_cmd_send(9)fc_fcp_error(9)fc_fcp_pkt_abort(9)fc_lun_reset_send(9)fc_lun_reset(9)fc_tm_done(9)fc_fcp_cleanup(9)fc_fcp_timeout(9)fc_fcp_rec(9)fc_fcp_rec_resp(9)fc_fcp_rec_error(9)fc_fcp_recovery(9)fc_fcp_srr(9)fc_fcp_srr_resp(9)fc_fcp_srr_error(9)fc_fcp_lport_queue_ready(9)fc_queuecommand(9)fc_io_compl(9)fc_eh_abort(9)fc_eh_device_reset(9)fc_eh_host_reset(9)fc_fcp_destroy(9)fc_fcp_init(9)
yeah. forty-nine of them. she has friends, okay?? πβ¨
π¦ sign-off π¦
this page lives in ./drivers/scsi/libfc and it's dated October 2026 β so yeah, she's from the future and she's still explaining queue depth to us. iconic behavior honestly. π
go forth, set that queue depth, and remember: if cmd_per_len isn't there, the libfc default has your back. love that for you. mwah. πβ¨
π¦ 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