qla4xxx_set_chap(9)
β¨ qla4xxx_set_chap(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's a little function from the qla4xxx world and honestly? it's giving "set up your CHAP creds and go" energy. let's get into it π
πΈ NAME πΈ
qla4xxx_set_chap β make a chap entry at the given index π
β¨ SYNOPSIS β¨
int qla4xxx_set_chap (struct scsi_qla_host *ha , char *username , char
*password , uint16_t idx , int bidi );
like, yes, it returns an int, and yes, those are all the args π«Ά
π¦ ARGUMENTS π¦
haβ pointer to the adapter structure, your main character frusernameβ the CHAP username you wanna set πpasswordβ the CHAP password you wanna set π (no peeking)idxβ the CHAP index at which to make the entry πbidiβ the type of chap entry, i.e.chap_inorchap_outπ
π DESCRIPTION π
so what it does: it creates a chap entry at the given index, using all the info you just handed it β¨ lowkey simple, highkey important. that's the whole vibe π
β οΈ NOTE β οΈ
bestie pls read this one π β the caller should acquire the chap lock before getting here. not optional, not a suggestion, it's literally the note. lock first, then call. periodt π
π SEE ALSO π
the kernel file lives right here, go peek:
- Kernel file
./drivers/scsi/qla4xxx/ql4_mbx.c
and the whole friend group π«Ά:
qla4xxx_is_intr_poll_mode(9),qla4xxx_mailbox_command(9),qla4xxx_get_minidump_template(9),qla4xxx_req_template_size(9),qla4xxx_initialize_fw_cb(9),qla4xxx_get_dhcp_ip_address(9),qla4xxx_get_firmware_state(9),qla4xxx_get_firmware_status(9),qla4xxx_set_ddb_entry(9),qla4xxx_get_crash_record(9),qla4xxx_get_conn_event_log(9),qla4xxx_abort_task(9),qla4xxx_reset_lun(9),qla4xxx_reset_target(9),qla4xxx_about_firmware(9),qla4xxx_get_chap_index(9),qla4_84xx_extend_idc_tmo(9),qla4_8xxx_set_param(9),qla4_83xx_post_idc_ack(9)
and that's the whole page bestie, ily, go forth and CHAP responsibly πβ¨
sign-off szn π this iconic lil page comes from ./drivers/scsi/qla4xxx, dated October 2026, and it's literally qla4xxx_set_chap(9) β no cap π«Άπ
π¦ 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