fc_lun_reset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ fc_lun_reset(9) ✨

okay so bestie, this is a page from the Kernel API Manual, and honestly? it's giving "one tiny function, one very specific job." let's get into it πŸŽ€


πŸ’… NAME πŸ’…

fc_lun_reset β€” send a LUN RESET command to a device and wait for the reply 🫢

like, the whole personality of this function is: it sends the reset, and then it sits there. patiently. waiting. no cap.


🌸 SYNOPSIS 🌸

int fc_lun_reset (struct fc_lport *lport , struct fc_fcp_pkt *fsp ,
unsigned int id , unsigned int lun );

she takes four things and hands you back an int, periodt.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • lport β€” the local port you're sending the command on, iykyk ✨
  • fsp β€” the FCP packet that identifies the LUN that needs to be reset πŸ’« (this is the one doing the pointing, bestie)
  • id β€” the SCSI command ID πŸ”₯
  • lun β€” the LUN ID that's getting reset 🌈
🫢 small reminder: fsp identifies which LUN to reset, and lun is the LUN ID itself β€” both live here, don't mix them up!

πŸ‘‘ SEE ALSO πŸ‘‘

like, this function has so many friends. it's not even funny. main character energy in a whole file of functions πŸ’€

the kernel file ./drivers/scsi/libfc/fc_fcp.c and its crew:

struct 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_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_sdev_init(9), fc_fcp_destroy(9), fc_fcp_init(9)

like, go read them. or don't. I'm not your mom πŸ’… (jk, read them, they're iconic)


and that's the whole page, bestie πŸ“ this gem lives in ./drivers/scsi/libfc and it's dated October 2026 β€” literally marking your calendar for a manpage, obsessed πŸ’–βœ¨πŸ§š

πŸ“¦ where this page comes from