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)
Mon, Mar 3, 5:49 AM
Unknown Object (File)
Mon, Mar 3, 4:51 AM
Unknown Object (File)
Mon, Mar 3, 3:26 AM
Unknown Object (File)
Thu, Feb 20, 8:54 PM
Unknown Object (File)
Thu, Feb 20, 8:15 PM
Unknown Object (File)
Tue, Feb 18, 2:47 AM
Unknown Object (File)
Feb 1 2025, 1:02 AM
Unknown Object (File)
Jan 31 2025, 1:23 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