Page MenuHomeFreeBSD

Use XPT_GET_ADVINFO for retrieving MMC params
ClosedPublic

Authored by scottl on Jan 11 2018, 6:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 22 2026, 8:54 PM
Unknown Object (File)
Apr 28 2026, 1:08 AM
Unknown Object (File)
Apr 20 2026, 10:15 PM
Unknown Object (File)
Apr 17 2026, 4:57 AM
Unknown Object (File)
Apr 11 2026, 2:09 PM
Unknown Object (File)
Apr 6 2026, 11:19 AM
Unknown Object (File)
Apr 6 2026, 3:58 AM
Unknown Object (File)
Apr 5 2026, 9:30 AM
Subscribers
None

Details

Summary

Fix the accidental ABI breakage for CCBs and use the ADVINFO CCB
for retrieving the mmc_params structure.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This looks good to me, modulo my one question...
I'll test it out shortly.

sys/cam/mmc/mmc_xpt.c
373 โ†—(On Diff #37822)

I assume the ioctl takes care of setting up the kernel buffer for this, then copying it out to user space?

sys/cam/mmc/mmc_xpt.c
373 โ†—(On Diff #37822)

I believe it's handled automatically in cam_periph_mapmem()

This change LGTM, I would like to know how this was discovered?

This revision is now accepted and ready to land.Jan 19 2018, 2:23 PM

I came across it during some other clean-up work.