vt_suspend / vt_resume

Jean-Sébastien Pédron dumbbell at FreeBSD.org
Mon Oct 20 08:55:09 UTC 2014


On 09.10.2014 17:09, Andriy Gapon wrote:
> I looked at the vt code and I was not able to figure out what would be the
> proper place there.
> Initially I thought that vt_allocate() would be it, but then it seems that
> vt_allocate() might not be called. So, perhaps vtterm_cnprobe() ? Something else?

What about vt_upgrade()? It's called later in the boot process:

/* Delay until all devices attached, to not waste time. */
SYSINIT(vt_early_cons, SI_SUB_INT_CONFIG_HOOKS, SI_ORDER_ANY, vt_upgrade,
    &vt_consdev);

However, it's called from vt_allocate() too, so you would need a flag in
struct vd_device->vd_flags to record the fact the handlers are registered.

The core handlers would then call backend-specific handlers, if the
backend provides them.

-- 
Jean-Sébastien Pédron

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20141020/476fccfc/attachment.sig>


More information about the freebsd-current mailing list