asd_write_ocm_seg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… asd_write_ocm_seg(9) β€” Kernel API Manual, bestie edition ✨

okay so this is a page from the Kernel API Manual and it's about asd_write_ocm_seg, which literally writes a segment into on chip memory (OCM) πŸŽ€ that's the whole vibe, no cap.


🌸 NAME 🌸

asd_write_ocm_seg β€” write an on chip memory (OCM) segment ✍️✨


πŸ¦‹ SYNOPSIS πŸ¦‹

void asd_write_ocm_seg (struct asd_ha_struct *asd_ha , void *buffer ,
u32 offs , int size );

she's a void function, she takes four things, and honestly she's iconic for it πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • asd_ha β€” pointer to the host adapter structure 🫢 like, this is the adapter we're talking to, bestie
  • buffer β€” where to read the write data πŸ“– this is your source, the data comes from here
  • offs β€” offset into OCM to write to πŸ“ exactly where in that on chip memory we're dropping the goods
  • size β€” how many bytes to write πŸ”’ yes, actual byte count, keep track of her

πŸ’– DESCRIPTION πŸ’–

so here's the thing, and this part is a lil plot twist 😭 β€” this function returns the number of bytes not written. yep. the leftovers. the ones that didn't make it.

and it returns 0 on success πŸŽ‰ so a zero is genuinely the slay outcome here, don't panic when you see it.

fr fr, 0 = success. anything else = the count of bytes that got left on read πŸ’€

🌈 SEE ALSO 🌈

Kernel file ./drivers/scsi/aic94xx/aic94xx_sds.c πŸ—‚οΈ and the rest of the friend group:


✨ that's the whole page, mwah πŸ’‹ big sign-off energy: this one lives in ./drivers/scsi/aic94xx and it's dated October 2026 β€” go off, asd_write_ocm_seg(9) πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from