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)
Fri, Jun 12, 3:16 PM
Unknown Object (File)
Thu, Jun 11, 4:42 PM
Unknown Object (File)
Sat, May 30, 6:43 PM
Unknown Object (File)
May 14 2026, 3:24 PM
Unknown Object (File)
May 13 2026, 2:47 PM
Unknown Object (File)
May 12 2026, 1:04 PM
Unknown Object (File)
May 12 2026, 8:12 AM
Unknown Object (File)
May 11 2026, 10:02 PM
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