€•]%Œ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Œ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”…””}”(hhõ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”…””}”(hjhž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 ”…””}”(hj?hžhhŸNh Nubhâ)”}”(hŒ ``/dev/ptmx``”h]”hŒ /dev/ptmx”…””}”(hjGhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1háhj?ubhŒ device node at ”…””}”(hj?hžhhŸNh Nubhâ)”}”(hŒ ``/dev/ptmx``”h]”hŒ /dev/ptmx”…””}”(hjYhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1háhj?ubhŒ& it is possible to place a symlink to ”…””}”(hj?hžhhŸNh Nubhâ)”}”(hŒ``/dev/pts/ptmx``”h]”hŒ /dev/pts/ptmx”…””}”(hjkhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1háhj?ubhŒ at ”…””}”(hj?hžhhŸNh Nubhâ)”}”(hŒ ``/dev/ptmx``”h]”hŒ /dev/ptmx”…””}”(hj}hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1háhj?ubhŒ or to bind mount ”…””}”(hj?hžhhŸNh Nubhâ)”}”(hŒ``/dev/ptx/ptmx``”h]”hŒ /dev/ptx/ptmx”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1háhj?ubhŒ to ”…””}”(hj?hžhhŸNh Nubhâ)”}”(hŒ ``/dev/ptmx``”h]”hŒ /dev/ptmx”…””}”(hj¡hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1háhj?ubhŒ_. If you opt for using the devpts filesystem in this manner devpts should be mounted with the ”…””}”(hj?hžhhŸNh Nubhâ)”}”(hŒ``ptmxmode=0666``”h]”hŒ ptmxmode=0666”…””}”(hj³hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1háhj?ubhŒ, or ”…””}”(hj?hž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áhj?ubhŒ should be called.”…””}”(hj?hž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”…””}”hjísbah}”(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 ”…””}”(hjûhžhhŸNh Nubhâ)”}”(hŒ``max=``”h]”hŒ max=”…””}”(hjhž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 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 ”…””}”(hjhžhhŸNh Nubhâ)”}”(hŒ``sysctl kernel.pty.reserve``”h]”hŒsysctl kernel.pty.reserve”…””}”(hj#hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1háhjubhŒ.”…””}”(hjhž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 ”…””}”(hj;hžhhŸNh Nubhâ)”}”(hŒ``kernel.pty.max``”h]”hŒkernel.pty.max”…””}”(hjChžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1háhj;ubhŒ works as per-instance limit.”…””}”(hj;hž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”}”j`j]sŒ nametypes”}”j`‰sh}”j]h¶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.