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, Oct 13, 3:26 AM
Unknown Object (File)
Sat, Oct 11, 6:44 AM
Unknown Object (File)
Wed, Oct 8, 5:43 PM
Unknown Object (File)
Wed, Oct 8, 4:24 PM
Unknown Object (File)
Tue, Oct 7, 3:24 AM
Unknown Object (File)
Tue, Sep 30, 5:19 PM
Unknown Object (File)
Sep 15 2025, 9:55 PM
Unknown Object (File)
Sep 14 2025, 12:39 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