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
F131800531: D46446.diff
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)
Mon, Sep 15, 9:55 PM
Unknown Object (File)
Sun, Sep 14, 12:39 AM
Unknown Object (File)
Sat, Sep 13, 8:57 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 59190
Build 56077: arc lint + arc unit