Page MenuHomeFreeBSD

vmm: Remove an unneeded lookup in devmem_create_cdev()
ClosedPublic

Authored by markj on Aug 27 2024, 12:04 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 15, 3:54 PM
Unknown Object (File)
Nov 15 2024, 12:44 AM
Unknown Object (File)
Oct 31 2024, 4:26 AM
Unknown Object (File)
Oct 19 2024, 1:29 PM
Unknown Object (File)
Oct 19 2024, 1:29 PM
Unknown Object (File)
Oct 19 2024, 1:29 PM
Unknown Object (File)
Oct 19 2024, 1:09 PM
Unknown Object (File)
Sep 15 2024, 4:28 AM
Subscribers

Details

Summary

The sole caller of this function already holds a pointer to the VM's
softc, so rather than passing the VM name and looking it up again, just
pass the softc pointer directly. This function is only called from an
ioctl context, so the softc structure will remain live.

Diff Detail

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