mvumi_make_sgl(9)
π mvumi_make_sgl(9) π
okay so bestie, welcome to the Kernel API Manual β this one's about mvumi_make_sgl, which is literally the function whose whole job is Prepares SGL. that's it, that's the name. short king behavior but we respect it π«Ά
β¨ NAME β¨
mvumi_make_sgl β Prepares SGL
likeβ¦ it prepares the SGL. no notes. iconic honestly π
πΈ SYNOPSIS πΈ
int mvumi_make_sgl (struct mvumi_hba *mhba , struct scsi_cmnd *scmd , void *sgl_p , unsigned char *sg_count );
yes the spaces before the commas are on purpose, don't come for me, that's just how it's written π
π ARGUMENTS π
mhbaβ Adapter soft state. it's the soft state, of the adapter. that's the whole vibe, that's the whole job π¦scmdβ SCSI command from the mid-layer. mid-layer said "here, take this", and honestly? we did πsgl_pβ SGL to be filled in. this is the one getting the glow-up β it's to be filled in, you're not reading it, you're writing into it β¨sg_countβ return the number of SG elements. note the word return β this isn't just a value you pass, it's a value that comes back out to you π it's carrying the count of SG elements, so don't sleep on it
π DESCRIPTION π
okay so real talk, super simple:
If successful, this function returns 0. otherwise, it returns -1.
that's it. that's the contract. 0 = slay, -1 = we don't talk about it π«Ά
ngl bestie, "otherwise" is doing a lot of heavy lifting in that sentence β but it's literally what the page says, so we're keeping it exactly as is π
π¦ SEE ALSO π¦
first things first, the kernel file itself lives at ./drivers/scsi/mvumi.c β that's the mothership, go say hi π
and here's the whole friend group in the mvumi cinematic universe, all of them (9), all of them linked:
mvumi_get_cmd(9)mvumi_return_cmd(9)mvumi_free_cmds(9)mvumi_alloc_cmds(9)mvumi_init_data(9)mvumi_handshake(9)mvumi_complete_cmd(9)mvumi_enable_intr(9)mvumi_disable_intr(9)mvumi_read_fw_status_reg(9)mvumi_build_frame(9)mvumi_queue_command(9)mvumi_init_fw(9)mvumi_io_attach(9)mvumi_probe_one(9)mvumi_shutdown(9)
main character energy across the board, no cap π
and that's the whole page bestie, go touch some ./drivers/scsi π§
β¨ this has been mvumi_make_sgl(9), coming to you from ./drivers/scsi, dated October 2026 β¨ πππΈ
π¦ 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