From owner-freebsd-current@FreeBSD.ORG Mon Oct 20 08:55:09 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1BA4CB58 for ; Mon, 20 Oct 2014 08:55:09 +0000 (UTC) Received: from mail.made4.biz (mail.made4.biz [IPv6:2001:41d0:2:c018::1:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D2854123 for ; Mon, 20 Oct 2014 08:55:08 +0000 (UTC) Received: from 2a02-8428-011b-e000-0290-f5ff-fe9d-b78c.rev.sfr.net ([2a02:8428:11b:e000:290:f5ff:fe9d:b78c] helo=magellan.dumbbell.fr) by mail.made4.biz with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.84 (FreeBSD)) (envelope-from ) id 1Xg8k6-00060A-Tg for freebsd-current@freebsd.org; Mon, 20 Oct 2014 10:55:07 +0200 Message-ID: <5444CDE6.9020803@FreeBSD.org> Date: Mon, 20 Oct 2014 10:55:02 +0200 From: =?windows-1252?Q?Jean-S=E9bastien_P=E9dron?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: vt_suspend / vt_resume References: <542A43E1.5010401@FreeBSD.org> <542EBD1F.2060604@FreeBSD.org> <542EBEF1.1080200@freebsd.org> <5436A52A.30802@FreeBSD.org> In-Reply-To: <5436A52A.30802@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="aR2su6jOfuv9QEpE31REA9Ewpgf8PbbjA" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Oct 2014 08:55:09 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --aR2su6jOfuv9QEpE31REA9Ewpgf8PbbjA Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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 t= hat > vt_allocate() might not be called. So, perhaps vtterm_cnprobe() ? Somet= hing 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= =2E The core handlers would then call backend-specific handlers, if the backend provides them. --=20 Jean-S=E9bastien P=E9dron --aR2su6jOfuv9QEpE31REA9Ewpgf8PbbjA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJURM3qXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NzA4N0ZEMUFFQUUwRTEyREJDNkE2RjAz OUU5OTc2MUE1RkQ5NENDAAoJEDnpl2Gl/ZTMnjAP/ilDAN5aQBn5pFxwbfh6JQ95 zPLkOsp1v6kyRmOdws1+gwSvVkmj64HtDpJhYD9il8pTL7nKVztQaFfkH8YhmYGi ztuAip67RNPwQWwwYInfpgqATrz9dgx3M2XgtlZEBWsMpfn5MjNDXeQOR/ddQ0fk /kuV9d0mNoxGQY2P0qdQljrBK5e0YoyCuZQDC0WhgwsxzjmNTDJg3nVGitIqSpau LeLRlUJe5d9k03IseczXiqsb963XK1P9mGYanlzYyyzSaZZBD71qrCjJ+Q36KbFI d2U0cvq+Pny2xthqtLmE3Bwbk0jJYNpiHH4gzZ6WSOjgZvbMZ8jLfIaHHhSLx8gH oPuxlLCdxZsAsDqurgMw3IgmCcDUVSVttO2ln2yQW9LsTYyBiSb94devy1yeEFmV 8MF5xg7lJdKcwM2wZsm2yaUay0zFtIJQvZm5UKisBp7oWRJYWmiJdMqX+uo7DKqC oWzHD5txyvLEIpW0ZgTwS3HpxIKhswFBXR1qqF5jTNjW6CmbvxXCiBdfsuSuXlKd 6Smsx/lJBM33FwYZpVghdChfIvY5keoxaS17lDVHFrIu1LdK3tfRAFe9xnkexrXo PtFrYk3hX0p8SggVkpcYzmSsiwKVhFabZe9x3fCdROW8knzHQTfiom7I8/CY3lWR iG4q3GXd0XWNNV7u/Dhm =xeog -----END PGP SIGNATURE----- --aR2su6jOfuv9QEpE31REA9Ewpgf8PbbjA--