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)
Sat, Dec 13, 11:50 AM
Unknown Object (File)
Wed, Dec 3, 6:29 AM
Unknown Object (File)
Mon, Dec 1, 9:17 PM
Unknown Object (File)
Wed, Nov 26, 3:18 PM
Unknown Object (File)
Nov 26 2025, 3:45 AM
Unknown Object (File)
Nov 25 2025, 6:33 AM
Unknown Object (File)
Nov 23 2025, 9:11 PM
Unknown Object (File)
Nov 23 2025, 6:37 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