fc_fcp_pkt_alloc(9)
β¨ NAME β¨
okay so this is fc_fcp_pkt_alloc(9) from the Kernel API Manual β and it literally does what it says on the tin: allocate a fcp_pkt π
πΈ SYNOPSIS πΈ
struct fc_fcp_pkt * fc_fcp_pkt_alloc (struct fc_lport *lport , gfp_t gfp
);
bestie, it's giving "one function, two arguments, zero drama" β¨
π ARGUMENTS π
lportβ the local port that the FCP packet is for π«Ά like, this is the port your packet belongs to, okay?gfpβ the GFP flags for allocation πΈ yes, the allocation vibes are specified here, no cap.
π DESCRIPTION π
so what do you actually get back? The return value is a fcp_pkt structure β slay β or null on allocation failure π like if the allocation doesn't work out, you get null, periodt.
that's literally the whole description, and honestly? iconic. short, sweet, to the point. no notes. π
π¦ CONTEXT π¦
you can call this from process context, and no lock is required πβ¨ so don't go grabbing a lock for this one, bestie β it does not need it, fr fr.
π₯ SEE ALSO π₯
okay this list is LONG and honestly it ate π every single one, in order, no skips:
- the kernel file
./drivers/scsi/libfc/fc_fcp.cβ yes, that's where it lives π struct fc_fcp_internal(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_sdev_init(9)fc_fcp_destroy(9)fc_fcp_init(9)
like, go read those if you want the full lore π
xoxo, your kernel bestie π this page came from ./drivers/scsi/libfc, dated October 2026, and yes the footer literally says fc_fcp_pkt_alloc(9) again β consistent queen πβ¨
π¦ 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