€•cŒsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ&/translations/zh_CN/driver-api/console”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/zh_TW/driver-api/console”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/it_IT/driver-api/console”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/ja_JP/driver-api/console”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/ko_KR/driver-api/console”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/pt_BR/driver-api/console”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/sp_SP/driver-api/console”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)”}”(hŒ SPDX-License-Identifier: GPL-2.0”h]”hŒ SPDX-License-Identifier: GPL-2.0”…””}”hh·sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1hµhhh²hh³Œ@/var/lib/git/docbuild/linux/Documentation/driver-api/console.rst”h´KubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒConsole Drivers”h]”hŒConsole Drivers”…””}”(hhÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÊh²hh³hÇh´KubhŒ paragraph”“”)”}”(hXNThe Linux kernel has 2 general types of console drivers. The first type is assigned by the kernel to all the virtual consoles during the boot process. This type will be called 'system driver', and only one system driver is allowed to exist. The system driver is persistent and it can never be unloaded, though it may become inactive.”h]”hXRThe Linux kernel has 2 general types of console drivers. The first type is assigned by the kernel to all the virtual consoles during the boot process. This type will be called ‘system driver’, and only one system driver is allowed to exist. The system driver is persistent and it can never be unloaded, though it may become inactive.”…””}”(hhßh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhÞ)”}”(hX The second type has to be explicitly loaded and unloaded. This will be called 'modular driver' by this document. Multiple modular drivers can coexist at any time with each driver sharing the console with other drivers including the system driver. However, modular drivers cannot take over the console that is currently occupied by another modular driver. (Exception: Drivers that call do_take_over_console() will succeed in the takeover regardless of the type of driver occupying the consoles.) They can only take over the console that is occupied by the system driver. In the same token, if the modular driver is released by the console, the system driver will take over.”h]”hX¤The second type has to be explicitly loaded and unloaded. This will be called ‘modular driver’ by this document. Multiple modular drivers can coexist at any time with each driver sharing the console with other drivers including the system driver. However, modular drivers cannot take over the console that is currently occupied by another modular driver. (Exception: Drivers that call do_take_over_console() will succeed in the takeover regardless of the type of driver occupying the consoles.) They can only take over the console that is occupied by the system driver. In the same token, if the modular driver is released by the console, the system driver will take over.”…””}”(hhíh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K hhÊh²hubhÞ)”}”(hŒDModular drivers, from the programmer's point of view, have to call::”h]”hŒEModular drivers, from the programmer’s point of view, have to call:”…””}”(hhûh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhŒ literal_block”“”)”}”(hŒ¢do_take_over_console() - load and bind driver to console layer give_up_console() - unload driver; it will only work if driver is fully unbound”h]”hŒ¢do_take_over_console() - load and bind driver to console layer give_up_console() - unload driver; it will only work if driver is fully unbound”…””}”hj sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j h³hÇh´KhhÊh²hubhÞ)”}”(hŒ4In newer kernels, the following are also available::”h]”hŒ3In newer kernels, the following are also available:”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubj )”}”(hŒ3do_register_con_driver() do_unregister_con_driver()”h]”hŒ3do_register_con_driver() do_unregister_con_driver()”…””}”hj'sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j h³hÇh´KhhÊh²hubhÞ)”}”(hŒÓIf sysfs is enabled, the contents of /sys/class/vtconsole can be examined. This shows the console backends currently registered by the system which are named vtcon where is an integer from 0 to 15. Thus::”h]”hŒÒIf sysfs is enabled, the contents of /sys/class/vtconsole can be examined. This shows the console backends currently registered by the system which are named vtcon where is an integer from 0 to 15. Thus:”…””}”(hj5h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K"hhÊh²hubj )”}”(hŒ-ls /sys/class/vtconsole . .. vtcon0 vtcon1”h]”hŒ-ls /sys/class/vtconsole . .. vtcon0 vtcon1”…””}”hjCsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j h³hÇh´K'hhÊh²hubhÞ)”}”(hŒ4Each directory in /sys/class/vtconsole has 3 files::”h]”hŒ3Each directory in /sys/class/vtconsole has 3 files:”…””}”(hjQh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K*hhÊh²hubj )”}”(hŒ8ls /sys/class/vtconsole/vtcon0 . .. bind name uevent”h]”hŒ8ls /sys/class/vtconsole/vtcon0 . .. bind name uevent”…””}”hj_sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j h³hÇh´K,hhÊh²hubhÞ)”}”(hŒWhat do these files signify?”h]”hŒWhat do these files signify?”…””}”(hjmh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K/hhÊh²hubhŒ block_quote”“”)”}”(hXu1. bind - this is a read/write file. It shows the status of the driver if read, or acts to bind or unbind the driver to the virtual consoles when written to. The possible values are: 0 - means the driver is not bound and if echo'ed, commands the driver to unbind 1 - means the driver is bound and if echo'ed, commands the driver to bind 2. name - read-only file. Shows the name of the driver in this format:: cat /sys/class/vtconsole/vtcon0/name (S) VGA+ '(S)' stands for a (S)ystem driver, i.e., it cannot be directly commanded to bind or unbind 'VGA+' is the name of the driver cat /sys/class/vtconsole/vtcon1/name (M) frame buffer device In this case, '(M)' stands for a (M)odular driver, one that can be directly commanded to bind or unbind. 3. uevent - ignore this file ”h]”hŒenumerated_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hX\bind - this is a read/write file. It shows the status of the driver if read, or acts to bind or unbind the driver to the virtual consoles when written to. The possible values are: 0 - means the driver is not bound and if echo'ed, commands the driver to unbind 1 - means the driver is bound and if echo'ed, commands the driver to bind ”h]”(hÞ)”}”(hŒ³bind - this is a read/write file. It shows the status of the driver if read, or acts to bind or unbind the driver to the virtual consoles when written to. The possible values are:”h]”hŒ³bind - this is a read/write file. It shows the status of the driver if read, or acts to bind or unbind the driver to the virtual consoles when written to. The possible values are:”…””}”(hjŒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K1hjˆubhŒdefinition_list”“”)”}”(hhh]”(hŒdefinition_list_item”“”)”}”(hŒR0 - means the driver is not bound and if echo'ed, commands the driver to unbind ”h]”(hŒterm”“”)”}”(hŒ0”h]”hŒ0”…””}”(hj§h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j¥h³hÇh´K7hj¡ubhŒ definition”“”)”}”(hhh]”hŒ bullet_list”“”)”}”(hhh]”j‡)”}”(hŒLmeans the driver is not bound and if echo'ed, commands the driver to unbind ”h]”hÞ)”}”(hŒKmeans the driver is not bound and if echo'ed, commands the driver to unbind”h]”hŒMmeans the driver is not bound and if echo’ed, commands the driver to unbind”…””}”(hjÃh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K6hj¿ubah}”(h]”h ]”h"]”h$]”h&]”uh1j†hj¼ubah}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ-”uh1jºh³hÇh´K6hj·ubah}”(h]”h ]”h"]”h$]”h&]”uh1jµhj¡ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jŸh³hÇh´K7hjœubj )”}”(hŒL1 - means the driver is bound and if echo'ed, commands the driver to bind ”h]”(j¦)”}”(hŒ1”h]”hŒ1”…””}”(hjïh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j¥h³hÇh´K;hjëubj¶)”}”(hhh]”j»)”}”(hhh]”j‡)”}”(hŒFmeans the driver is bound and if echo'ed, commands the driver to bind ”h]”hÞ)”}”(hŒEmeans the driver is bound and if echo'ed, commands the driver to bind”h]”hŒGmeans the driver is bound and if echo’ed, commands the driver to bind”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K:hjubah}”(h]”h ]”h"]”h$]”h&]”uh1j†hjubah}”(h]”h ]”h"]”h$]”h&]”jÝjÞuh1jºh³hÇh´K:hjýubah}”(h]”h ]”h"]”h$]”h&]”uh1jµhjëubeh}”(h]”h ]”h"]”h$]”h&]”uh1jŸh³hÇh´K;hjœubeh}”(h]”h ]”h"]”h$]”h&]”uh1jšhjˆubeh}”(h]”h ]”h"]”h$]”h&]”uh1j†hjƒubj‡)”}”(hXÁname - read-only file. Shows the name of the driver in this format:: cat /sys/class/vtconsole/vtcon0/name (S) VGA+ '(S)' stands for a (S)ystem driver, i.e., it cannot be directly commanded to bind or unbind 'VGA+' is the name of the driver cat /sys/class/vtconsole/vtcon1/name (M) frame buffer device In this case, '(M)' stands for a (M)odular driver, one that can be directly commanded to bind or unbind. ”h]”(hÞ)”}”(hŒDname - read-only file. Shows the name of the driver in this format::”h]”hŒCname - read-only file. Shows the name of the driver in this format:”…””}”(hj=h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K=hj9ubj )”}”(hXhcat /sys/class/vtconsole/vtcon0/name (S) VGA+ '(S)' stands for a (S)ystem driver, i.e., it cannot be directly commanded to bind or unbind 'VGA+' is the name of the driver cat /sys/class/vtconsole/vtcon1/name (M) frame buffer device In this case, '(M)' stands for a (M)odular driver, one that can be directly commanded to bind or unbind.”h]”hXhcat /sys/class/vtconsole/vtcon0/name (S) VGA+ '(S)' stands for a (S)ystem driver, i.e., it cannot be directly commanded to bind or unbind 'VGA+' is the name of the driver cat /sys/class/vtconsole/vtcon1/name (M) frame buffer device In this case, '(M)' stands for a (M)odular driver, one that can be directly commanded to bind or unbind.”…””}”hjKsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j h³hÇh´K?hj9ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j†hjƒubj‡)”}”(hŒuevent - ignore this file ”h]”hÞ)”}”(hŒuevent - ignore this file”h]”hŒuevent - ignore this file”…””}”(hjch²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KMhj_ubah}”(h]”h ]”h"]”h$]”h&]”uh1j†hjƒubeh}”(h]”h ]”h"]”h$]”h&]”Œenumtype”Œarabic”Œprefix”hŒsuffix”Œ.”uh1jhj}ubah}”(h]”h ]”h"]”h$]”h&]”uh1j{h³hÇh´K1hhÊh²hubhÞ)”}”(hŒðWhen unbinding, the modular driver is detached first, and then the system driver takes over the consoles vacated by the driver. Binding, on the other hand, will bind the driver to the consoles that are currently occupied by a system driver.”h]”hŒðWhen unbinding, the modular driver is detached first, and then the system driver takes over the consoles vacated by the driver. Binding, on the other hand, will bind the driver to the consoles that are currently occupied by a system driver.”…””}”(hjˆh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KOhhÊh²hubj›)”}”(hhh]”(j )”}”(hŒ·NOTE1: Binding and unbinding must be selected in Kconfig. It's under:: Device Drivers -> Character devices -> Support for binding and unbinding console drivers ”h]”(j¦)”}”(hŒNOTE1:”h]”hŒNOTE1:”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j¥h³hÇh´KYhj™ubj¶)”}”(hhh]”(hÞ)”}”(hŒ?Binding and unbinding must be selected in Kconfig. It's under::”h]”hŒ@Binding and unbinding must be selected in Kconfig. It’s under:”…””}”(hj®h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KUhj«ubj )”}”(hŒhDevice Drivers -> Character devices -> Support for binding and unbinding console drivers”h]”hŒhDevice Drivers -> Character devices -> Support for binding and unbinding console drivers”…””}”hj¼sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j h³hÇh´KWhj«ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jµhj™ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jŸh³hÇh´KYhj–ubj )”}”(hŒ³NOTE2: If any of the virtual consoles are in KD_GRAPHICS mode, then binding or unbinding will not succeed. An example of an application that sets the console to KD_GRAPHICS is X. ”h]”(j¦)”}”(hŒNOTE2:”h]”hŒNOTE2:”…””}”(hjÚh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j¥h³hÇh´K^hjÖubj¶)”}”(hhh]”hÞ)”}”(hŒ«If any of the virtual consoles are in KD_GRAPHICS mode, then binding or unbinding will not succeed. An example of an application that sets the console to KD_GRAPHICS is X.”h]”hŒ«If any of the virtual consoles are in KD_GRAPHICS mode, then binding or unbinding will not succeed. An example of an application that sets the console to KD_GRAPHICS is X.”…””}”(hjëh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K\hjèubah}”(h]”h ]”h"]”h$]”h&]”uh1jµhjÖubeh}”(h]”h ]”h"]”h$]”h&]”uh1jŸh³hÇh´K^hj–h²hubeh}”(h]”h ]”h"]”h$]”h&]”uh1jšhhÊh²hh³hÇh´NubhÞ)”}”(hXÓHow useful is this feature? This is very useful for console driver developers. By unbinding the driver from the console layer, one can unload the driver, make changes, recompile, reload and rebind the driver without any need for rebooting the kernel. For regular users who may want to switch from framebuffer console to VGA console and vice versa, this feature also makes this possible. (NOTE NOTE NOTE: Please read fbcon.txt under Documentation/fb for more details.)”h]”hXÓHow useful is this feature? This is very useful for console driver developers. By unbinding the driver from the console layer, one can unload the driver, make changes, recompile, reload and rebind the driver without any need for rebooting the kernel. For regular users who may want to switch from framebuffer console to VGA console and vice versa, this feature also makes this possible. (NOTE NOTE NOTE: Please read fbcon.txt under Documentation/fb for more details.)”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K`hhÊh²hubhÉ)”}”(hhh]”(hÎ)”}”(hŒNotes for developers”h]”hŒNotes for developers”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjh²hh³hÇh´KiubhÞ)”}”(hŒ.do_take_over_console() is now broken up into::”h]”hŒ-do_take_over_console() is now broken up into:”…””}”(hj*h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kkhjh²hubj )”}”(hŒ@do_register_con_driver() do_bind_con_driver() - private function”h]”hŒ@do_register_con_driver() do_bind_con_driver() - private function”…””}”hj8sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j h³hÇh´Kmhjh²hubhÞ)”}”(hŒ³give_up_console() is a wrapper to do_unregister_con_driver(), and a driver must be fully unbound for this call to succeed. con_is_bound() will check if the driver is bound or not.”h]”hŒ³give_up_console() is a wrapper to do_unregister_con_driver(), and a driver must be fully unbound for this call to succeed. con_is_bound() will check if the driver is bound or not.”…””}”(hjFh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kphjh²hubeh}”(h]”Œnotes-for-developers”ah ]”h"]”Œnotes for developers”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KiubhÉ)”}”(hhh]”(hÎ)”}”(hŒ%Guidelines for console driver writers”h]”hŒ%Guidelines for console driver writers”…””}”(hj_h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj\h²hh³hÇh´KuubhÞ)”}”(hŒvIn order for binding to and unbinding from the console to properly work, console drivers must follow these guidelines:”h]”hŒvIn order for binding to and unbinding from the console to properly work, console drivers must follow these guidelines:”…””}”(hjmh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kwhj\h²hubj‚)”}”(hhh]”(j‡)”}”(hX5All drivers, except system drivers, must call either do_register_con_driver() or do_take_over_console(). do_register_con_driver() will just add the driver to the console's internal list. It won't take over the console. do_take_over_console(), as it name implies, will also take over (or bind to) the console. ”h]”hÞ)”}”(hX4All drivers, except system drivers, must call either do_register_con_driver() or do_take_over_console(). do_register_con_driver() will just add the driver to the console's internal list. It won't take over the console. do_take_over_console(), as it name implies, will also take over (or bind to) the console.”h]”hX8All drivers, except system drivers, must call either do_register_con_driver() or do_take_over_console(). do_register_con_driver() will just add the driver to the console’s internal list. It won’t take over the console. do_take_over_console(), as it name implies, will also take over (or bind to) the console.”…””}”(hj‚h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kzhj~ubah}”(h]”h ]”h"]”h$]”h&]”uh1j†hj{h²hh³hÇh´Nubj‡)”}”(hŒVAll resources allocated during con->con_init() must be released in con->con_deinit(). ”h]”hÞ)”}”(hŒUAll resources allocated during con->con_init() must be released in con->con_deinit().”h]”hŒUAll resources allocated during con->con_init() must be released in con->con_deinit().”…””}”(hjšh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K€hj–ubah}”(h]”h ]”h"]”h$]”h&]”uh1j†hj{h²hh³hÇh´Nubj‡)”}”(hX!All resources allocated in con->con_startup() must be released when the driver, which was previously bound, becomes unbound. The console layer does not have a complementary call to con->con_startup() so it's up to the driver to check when it's legal to release these resources. Calling con_is_bound() in con->con_deinit() will help. If the call returned false(), then it's safe to release the resources. This balance has to be ensured because con->con_startup() can be called again when a request to rebind the driver to the console arrives. ”h]”hÞ)”}”(hX All resources allocated in con->con_startup() must be released when the driver, which was previously bound, becomes unbound. The console layer does not have a complementary call to con->con_startup() so it's up to the driver to check when it's legal to release these resources. Calling con_is_bound() in con->con_deinit() will help. If the call returned false(), then it's safe to release the resources. This balance has to be ensured because con->con_startup() can be called again when a request to rebind the driver to the console arrives.”h]”hX&All resources allocated in con->con_startup() must be released when the driver, which was previously bound, becomes unbound. The console layer does not have a complementary call to con->con_startup() so it’s up to the driver to check when it’s legal to release these resources. Calling con_is_bound() in con->con_deinit() will help. If the call returned false(), then it’s safe to release the resources. This balance has to be ensured because con->con_startup() can be called again when a request to rebind the driver to the console arrives.”…””}”(hj²h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kƒhj®ubah}”(h]”h ]”h"]”h$]”h&]”uh1j†hj{h²hh³hÇh´Nubj‡)”}”(hŒ®Upon exit of the driver, ensure that the driver is totally unbound. If the condition is satisfied, then the driver must call do_unregister_con_driver() or give_up_console(). ”h]”hÞ)”}”(hŒ­Upon exit of the driver, ensure that the driver is totally unbound. If the condition is satisfied, then the driver must call do_unregister_con_driver() or give_up_console().”h]”hŒ­Upon exit of the driver, ensure that the driver is totally unbound. If the condition is satisfied, then the driver must call do_unregister_con_driver() or give_up_console().”…””}”(hjÊh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KŒhjÆubah}”(h]”h ]”h"]”h$]”h&]”uh1j†hj{h²hh³hÇh´Nubj‡)”}”(hŒÖdo_unregister_con_driver() can also be called on conditions which make it impossible for the driver to service console requests. This can happen with the framebuffer console that suddenly lost all of its drivers. ”h]”hÞ)”}”(hŒÕdo_unregister_con_driver() can also be called on conditions which make it impossible for the driver to service console requests. This can happen with the framebuffer console that suddenly lost all of its drivers.”h]”hŒÕdo_unregister_con_driver() can also be called on conditions which make it impossible for the driver to service console requests. This can happen with the framebuffer console that suddenly lost all of its drivers.”…””}”(hjâh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhjÞubah}”(h]”h ]”h"]”h$]”h&]”uh1j†hj{h²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”j}j~jhj€juh1jhj\h²hh³hÇh´KzubhÞ)”}”(hŒ´The current crop of console drivers should still work correctly, but binding and unbinding them may cause problems. With minimal fixes, these drivers can be made to work correctly.”h]”hŒ´The current crop of console drivers should still work correctly, but binding and unbinding them may cause problems. With minimal fixes, these drivers can be made to work correctly.”…””}”(hjüh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K”hj\h²hubhÞ)”}”(hŒ!Antonino Daplas ”h]”(hŒAntonino Daplas <”…””}”(hj h²hh³Nh´NubhŒ reference”“”)”}”(hŒadaplas@pol.net”h]”hŒadaplas@pol.net”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œmailto:adaplas@pol.net”uh1jhj ubhŒ>”…””}”(hj h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K˜hj\h²hubeh}”(h]”Œ%guidelines-for-console-driver-writers”ah ]”h"]”Œ%guidelines for console driver writers”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´Kuubeh}”(h]”Œconsole-drivers”ah ]”h"]”Œconsole drivers”ah$]”h&]”uh1hÈhhh²hh³hÇh´Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÇuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(hÍNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”jaŒerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÇŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(j;j8jYjVj3j0uŒ nametypes”}”(j;‰jY‰j3‰uh}”(j8hÊjVjj0j\uŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.