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)
Sat, Feb 1, 1:02 AM
Unknown Object (File)
Fri, Jan 31, 1:23 AM
Unknown Object (File)
Tue, Jan 28, 5:06 AM
Unknown Object (File)
Mon, Jan 27, 8:17 PM
Unknown Object (File)
Dec 26 2024, 5:50 PM
Unknown Object (File)
Dec 15 2024, 3:54 PM
Unknown Object (File)
Nov 15 2024, 12:44 AM
Unknown Object (File)
Oct 31 2024, 4:26 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