Page MenuHomeFreeBSD

stand: Change disk_parsedev() API
ClosedPublic

Authored by imp on Nov 10 2022, 5:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Feb 24, 7:26 PM
Unknown Object (File)
Mon, Feb 24, 3:58 PM
Unknown Object (File)
Mon, Feb 24, 1:11 PM
Unknown Object (File)
Mon, Feb 24, 2:55 AM
Unknown Object (File)
Sat, Feb 22, 1:51 AM
Unknown Object (File)
Sun, Feb 9, 4:03 PM
Unknown Object (File)
Mon, Feb 3, 9:24 PM
Unknown Object (File)
Jan 24 2025, 10:49 PM
Subscribers

Details

Summary

Change the first argument to disk_parsedev() to be a pointer to a struct
devdesc *. This now gets filled in with a malloc'd structure that's
returned to the caller that the caller is repsonsible for freeing. Most
places in the tree passed in a malloc'd pointer anyway, and this moves
knowledge of disk_devdesc more firmly into the disk.[ch] code.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable