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)
Tue, Jun 30, 7:50 PM
Unknown Object (File)
Tue, Jun 30, 10:39 AM
Unknown Object (File)
Mon, Jun 29, 4:39 PM
Unknown Object (File)
Fri, Jun 26, 9:40 PM
Unknown Object (File)
Jun 12 2026, 3:16 PM
Unknown Object (File)
Jun 11 2026, 4:42 PM
Unknown Object (File)
May 30 2026, 6:43 PM
Unknown Object (File)
May 14 2026, 3:24 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