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)
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)
Mon, Sep 15, 9:55 PM
Unknown Object (File)
Sun, Sep 14, 12:39 AM
Unknown Object (File)
Sat, Sep 13, 8:57 PM
Unknown Object (File)
Thu, Sep 11, 4:21 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