asd_read_ocm_seg(9)
β¨ asd_read_ocm_seg(9) β¨
okay so bestie, we're deep in the Kernel API Manual today and the vibe is very driver-dev summer βοΈ this one's asd_read_ocm_seg(9) and it's literally just here to read you a lil piece of on chip memory (OCM) π no cap, that's the whole gig.
πΈ NAME πΈ
asd_read_ocm_seg β read an on chip memory (OCM) segment π
like, it goes and fetches you a slice of OCM, periodt.
π SYNOPSIS π
int asd_read_ocm_seg (struct asd_ha_struct *asd_ha , void *buffer , u32
offs , int size );
that's the whole signature, copy it exactly bestie, don't be out here renaming things π
π¦ ARGUMENTS π¦
asd_haβ pointer to the host adapter structure β¨ this is the main character of the operation, lowkey the host adapter itself.bufferβ where to write the read data π the data lands here, this is the destination, that's it, no notes.offsβ offset into OCM where to read from πΈ so like, where in the OCM we're poking around.sizeβ how many bytes to read π exactly how much data you're grabbing, fr fr.
π DESCRIPTION π
Return the number of bytes not read π (yes, not read β read that twice, it's giving "we tell you what we missed").
Return 0 on success β¨ zero is the slay outcome here, that's the win condition, iykyk.
π SEE ALSO π
Kernel file ./drivers/scsi/aic94xx/aic94xx_sds.c β go read the source bestie, it's all there π and while you're at it, these iconic siblings:
asd_write_ocm_seg(9)asd_read_ocm(9)asd_find_flash_dir(9)asd_find_ll_by_id(9)asd_ms_get_phy_params(9)asd_process_ms(9)asd_process_ctrl_a_user(9)asd_read_flash(9)asd_verify_flash_seg(9)asd_write_flash_seg(9)asd_erase_nv_sector(9)
π«Ά and that's the page! brought to you from ./drivers/scsi/aic94xx, dated October 2026, manual page asd_read_ocm_seg(9) β go read some OCM, bestie, love that for you πβ¨π
π¦ 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