€•2&Œ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/filesystems/devpts”Œ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/filesystems/devpts”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒItalian”…”�”}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/it_IT/filesystems/devpts”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒJapanese”…”�”}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/ja_JP/filesystems/devpts”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒKorean”…”�”}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/ko_KR/filesystems/devpts”Œ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/filesystems/devpts”Œ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/filesystems/devpts”Œ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/filesystems/devpts.rst”h´KubhŒsection”“”)�”}”(hhh]”(hŒtitle”“”)�”}”(hŒThe Devpts Filesystem”h]”hŒThe Devpts Filesystem”…”�”}”(hhÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÊh²hh³hÇh´KubhŒ paragraph”“”)�”}”(hŒ¬Each mount of the devpts filesystem is now distinct such that ptys and their indices allocated in one mount are independent from ptys and their indices in all other mounts.”h]”hŒ¬Each mount of the devpts filesystem is now distinct such that ptys and their indices allocated in one mount are independent from ptys and their indices in all other mounts.”…”�”}”(hhßh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhÞ)�”}”(hŒbAll mounts of the devpts filesystem now create a ``/dev/pts/ptmx`` node with permissions ``0000``.”h]”(hŒ1All mounts of the devpts filesystem now create a ”…”�”}”(hhíh²hh³Nh´NubhŒliteral”“”)�”}”(hŒ``/dev/pts/ptmx``”h]”hŒ /dev/pts/ptmx”…”�”}”(hh÷h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhhíubhŒ node with permissions ”…”�”}”(hhíh²hh³Nh´Nubhö)�”}”(hŒ``0000``”h]”hŒ0000”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhhíubhŒ.”…”�”}”(hhíh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K hhÊh²hubhÞ)�”}”(hŒßTo retain backwards compatibility the a ptmx device node (aka any node created with ``mknod name c 5 2``) when opened will look for an instance of devpts under the name ``pts`` in the same directory as the ptmx device node.”h]”(hŒTTo retain backwards compatibility the a ptmx device node (aka any node created with ”…”�”}”(hj!h²hh³Nh´Nubhö)�”}”(hŒ``mknod name c 5 2``”h]”hŒmknod name c 5 2”…”�”}”(hj)h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj!ubhŒA) when opened will look for an instance of devpts under the name ”…”�”}”(hj!h²hh³Nh´Nubhö)�”}”(hŒ``pts``”h]”hŒpts”…”�”}”(hj;h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj!ubhŒ/ in the same directory as the ptmx device node.”…”�”}”(hj!h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhÞ)�”}”(hXkAs an option instead of placing a ``/dev/ptmx`` device node at ``/dev/ptmx`` it is possible to place a symlink to ``/dev/pts/ptmx`` at ``/dev/ptmx`` or to bind mount ``/dev/ptx/ptmx`` to ``/dev/ptmx``. If you opt for using the devpts filesystem in this manner devpts should be mounted with the ``ptmxmode=0666``, or ``chmod 0666 /dev/pts/ptmx`` should be called.”h]”(hŒ"As an option instead of placing a ”…”�”}”(hjSh²hh³Nh´Nubhö)�”}”(hŒ ``/dev/ptmx``”h]”hŒ /dev/ptmx”…”�”}”(hj[h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjSubhŒ device node at ”…”�”}”(hjSh²hh³Nh´Nubhö)�”}”(hŒ ``/dev/ptmx``”h]”hŒ /dev/ptmx”…”�”}”(hjmh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjSubhŒ& it is possible to place a symlink to ”…”�”}”(hjSh²hh³Nh´Nubhö)�”}”(hŒ``/dev/pts/ptmx``”h]”hŒ /dev/pts/ptmx”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjSubhŒ at ”…”�”}”(hjSh²hh³Nh´Nubhö)�”}”(hŒ ``/dev/ptmx``”h]”hŒ /dev/ptmx”…”�”}”(hj‘h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjSubhŒ or to bind mount ”…”�”}”(hjSh²hh³Nh´Nubhö)�”}”(hŒ``/dev/ptx/ptmx``”h]”hŒ /dev/ptx/ptmx”…”�”}”(hj£h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjSubhŒ to ”…”�”}”(hjSh²hh³Nh´Nubhö)�”}”(hŒ ``/dev/ptmx``”h]”hŒ /dev/ptmx”…”�”}”(hjµh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjSubhŒ_. If you opt for using the devpts filesystem in this manner devpts should be mounted with the ”…”�”}”(hjSh²hh³Nh´Nubhö)�”}”(hŒ``ptmxmode=0666``”h]”hŒ ptmxmode=0666”…”�”}”(hjÇh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjSubhŒ, or ”…”�”}”(hjSh²hh³Nh´Nubhö)�”}”(hŒ``chmod 0666 /dev/pts/ptmx``”h]”hŒchmod 0666 /dev/pts/ptmx”…”�”}”(hjÙh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjSubhŒ should be called.”…”�”}”(hjSh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhÞ)�”}”(hŒATotal count of pty pairs in all instances is limited by sysctls::”h]”hŒ@Total count of pty pairs in all instances is limited by sysctls:”…”�”}”(hjñh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhŒ literal_block”“”)�”}”(hŒ¾kernel.pty.max = 4096 - global limit kernel.pty.reserve = 1024 - reserved for filesystems mounted from the initial mount namespace kernel.pty.nr - current count of ptys”h]”hŒ¾kernel.pty.max = 4096 - global limit kernel.pty.reserve = 1024 - reserved for filesystems mounted from the initial mount namespace kernel.pty.nr - current count of ptys”…”�”}”hjsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jÿh³hÇh´KhhÊh²hubhÞ)�”}”(hŒGPer-instance limit could be set by adding mount option ``max=``.”h]”(hŒ7Per-instance limit could be set by adding mount option ”…”�”}”(hjh²hh³Nh´Nubhö)�”}”(hŒ``max=``”h]”hŒ max=”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjubhŒ.”…”�”}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhÞ)�”}”(hŒQThis feature was added in kernel 3.4 together with ``sysctl kernel.pty.reserve``.”h]”(hŒ3This feature was added in kernel 3.4 together with ”…”�”}”(hj/h²hh³Nh´Nubhö)�”}”(hŒ``sysctl kernel.pty.reserve``”h]”hŒsysctl kernel.pty.reserve”…”�”}”(hj7h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj/ubhŒ.”…”�”}”(hj/h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K!hhÊh²hubhÞ)�”}”(hŒPIn kernels older than 3.4 sysctl ``kernel.pty.max`` works as per-instance limit.”h]”(hŒ!In kernels older than 3.4 sysctl ”…”�”}”(hjOh²hh³Nh´Nubhö)�”}”(hŒ``kernel.pty.max``”h]”hŒkernel.pty.max”…”�”}”(hjWh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjOubhŒ works as per-instance limit.”…”�”}”(hjOh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K$hhÊh²hubeh}”(h]”Œthe-devpts-filesystem”ah ]”h"]”Œthe devpts filesystem”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”jšŒ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”}”jtjqsŒ nametypes”}”jt‰sh}”jqhÊsŒ 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.