Page MenuHomeFreeBSD

vt_core: make sure the driver's functions exist
AbandonedPublic

Authored by vexeduxr on Apr 20 2026, 8:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 4, 2:40 PM
Unknown Object (File)
Thu, May 28, 4:22 PM
Unknown Object (File)
Thu, May 28, 1:20 AM
Unknown Object (File)
Wed, May 27, 6:51 PM
Unknown Object (File)
Tue, May 19, 12:49 AM
Unknown Object (File)
Mon, May 18, 5:58 PM
Unknown Object (File)
Mon, May 18, 6:05 AM
Unknown Object (File)
Mon, May 18, 4:24 AM

Details

Summary

These are NULL if they're not implemented. Make sure all the functions
we need are there before doing anything.

Also invert the first if statment to lessen the indentation a bit.

Reported by: Quentin Thébault <quentin.thebault@defenso.fr>
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 72523
Build 69406: arc lint + arc unit

Event Timeline

Bump.
I'd like to get this into stable/15 before releng/15.1 branches

sys/dev/vt/vt_core.c
1687–1701

I was pondering whether we really want to set VDF_SPLASH if some of this can't happen due to missing callbacks, and whether we really want to try and draw a shutdown splash if we can't blank the screen. I tend to think that bailing out entirely if vd_blank is missing is probably the right answer for both questions?

sys/dev/vt/vt_core.c
1687–1701

Hmm, yes. Maybe we also shouldn't blank the screen if vd_bitblt_* are missing? (depending on which one we want to call).
I'll try restructuring the function a bit.

Don't do anything until we know that all the functions we need are present.
Also invert the first if statment to lessen the indentation.

vexeduxr edited the summary of this revision. (Show Details)

Landed, but forgot the tag the review :/
Apparently I can't mark this as closed as it hasn't been accepted.

Sorry, it's been a long day

Landed, but forgot the tag the review :/
Apparently I can't mark this as closed as it hasn't been accepted.

Sorry, it's been a long day

IIRC, the inability to close it was due to not having a commit associated to tag it with. You've done that now, but I think if you had it done it prior to abandoning it you would've additionally had the option to close it.