€•ù$Œ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/scheduler/membarrier”Œ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/scheduler/membarrier”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/it_IT/scheduler/membarrier”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/ja_JP/scheduler/membarrier”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/ko_KR/scheduler/membarrier”Œ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/scheduler/membarrier”Œ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ŸŒB/var/lib/git/docbuild/linux/Documentation/scheduler/membarrier.rst”h KubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒmembarrier() System Call”h]”hŒmembarrier() System Call”…””}”(hh»hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hh¶hžhhŸh³h Kubhµ)”}”(hhh]”(hº)”}”(hŒEMEMBARRIER_CMD_{PRIVATE,GLOBAL}_EXPEDITED - Architecture requirements”h]”hŒEMEMBARRIER_CMD_{PRIVATE,GLOBAL}_EXPEDITED - Architecture requirements”…””}”(hhÌhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hhÉhžhhŸh³h Kubhµ)”}”(hhh]”(hº)”}”(hŒ(Memory barriers before updating rq->curr”h]”hŒ(Memory barriers before updating rq->curr”…””}”(hhÝhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hhÚhžhhŸh³h K ubhŒ paragraph”“”)”}”(hX¥The commands MEMBARRIER_CMD_PRIVATE_EXPEDITED and MEMBARRIER_CMD_GLOBAL_EXPEDITED require each architecture to have a full memory barrier after coming from user-space, before updating rq->curr. This barrier is implied by the sequence rq_lock(); smp_mb__after_spinlock() in __schedule(). The barrier matches a full barrier in the proximity of the membarrier system call exit, cf. membarrier_{private,global}_expedited().”h]”hX¥The commands MEMBARRIER_CMD_PRIVATE_EXPEDITED and MEMBARRIER_CMD_GLOBAL_EXPEDITED require each architecture to have a full memory barrier after coming from user-space, before updating rq->curr. This barrier is implied by the sequence rq_lock(); smp_mb__after_spinlock() in __schedule(). The barrier matches a full barrier in the proximity of the membarrier system call exit, cf. membarrier_{private,global}_expedited().”…””}”(hhíhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëhŸh³h K hhÚhžhubeh}”(h]”Œ'memory-barriers-before-updating-rq-curr”ah ]”h"]”Œ(memory barriers before updating rq->curr”ah$]”h&]”uh1h´hhÉhžhhŸh³h K ubhµ)”}”(hhh]”(hº)”}”(hŒ'Memory barriers after updating rq->curr”h]”hŒ'Memory barriers after updating rq->curr”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hjhžhhŸh³h Kubhì)”}”(hXThe commands MEMBARRIER_CMD_PRIVATE_EXPEDITED and MEMBARRIER_CMD_GLOBAL_EXPEDITED require each architecture to have a full memory barrier after updating rq->curr, before returning to user-space. The schemes providing this barrier on the various architectures are as follows.”h]”hXThe commands MEMBARRIER_CMD_PRIVATE_EXPEDITED and MEMBARRIER_CMD_GLOBAL_EXPEDITED require each architecture to have a full memory barrier after updating rq->curr, before returning to user-space. The schemes providing this barrier on the various architectures are as follows.”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëhŸh³h KhjhžhubhŒ block_quote”“”)”}”(hX - alpha, arc, arm, hexagon, mips rely on the full barrier implied by spin_unlock() in finish_lock_switch(). - arm64 relies on the full barrier implied by switch_to(). - powerpc, riscv, s390, sparc, x86 rely on the full barrier implied by switch_mm(), if mm is not NULL; they rely on the full barrier implied by mmdrop(), otherwise. On powerpc and riscv, switch_mm() relies on membarrier_arch_switch_mm(). ”h]”hŒ bullet_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hŒjalpha, arc, arm, hexagon, mips rely on the full barrier implied by spin_unlock() in finish_lock_switch(). ”h]”hì)”}”(hŒialpha, arc, arm, hexagon, mips rely on the full barrier implied by spin_unlock() in finish_lock_switch().”h]”hŒialpha, arc, arm, hexagon, mips rely on the full barrier implied by spin_unlock() in finish_lock_switch().”…””}”(hj3hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëhŸh³h Khj/ubah}”(h]”h ]”h"]”h$]”h&]”uh1j-hj*ubj.)”}”(hŒ9arm64 relies on the full barrier implied by switch_to(). ”h]”hì)”}”(hŒ8arm64 relies on the full barrier implied by switch_to().”h]”hŒ8arm64 relies on the full barrier implied by switch_to().”…””}”(hjKhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëhŸh³h KhjGubah}”(h]”h ]”h"]”h$]”h&]”uh1j-hj*ubj.)”}”(hŒípowerpc, riscv, s390, sparc, x86 rely on the full barrier implied by switch_mm(), if mm is not NULL; they rely on the full barrier implied by mmdrop(), otherwise. On powerpc and riscv, switch_mm() relies on membarrier_arch_switch_mm(). ”h]”hì)”}”(hŒìpowerpc, riscv, s390, sparc, x86 rely on the full barrier implied by switch_mm(), if mm is not NULL; they rely on the full barrier implied by mmdrop(), otherwise. On powerpc and riscv, switch_mm() relies on membarrier_arch_switch_mm().”h]”hŒìpowerpc, riscv, s390, sparc, x86 rely on the full barrier implied by switch_mm(), if mm is not NULL; they rely on the full barrier implied by mmdrop(), otherwise. On powerpc and riscv, switch_mm() relies on membarrier_arch_switch_mm().”…””}”(hjchž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&]”Œbullet”Œ-”uh1j(hŸh³h Khj$ubah}”(h]”h ]”h"]”h$]”h&]”uh1j"hŸh³h Khjhžhubhì)”}”(hŒ…The barrier matches a full barrier in the proximity of the membarrier system call entry, cf. membarrier_{private,global}_expedited().”h]”hŒ…The barrier matches a full barrier in the proximity of the membarrier system call entry, cf. membarrier_{private,global}_expedited().”…””}”(hj…hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëhŸh³h K&hjhžhubeh}”(h]”Œ&memory-barriers-after-updating-rq-curr”ah ]”h"]”Œ'memory barriers after updating rq->curr”ah$]”h&]”uh1h´hhÉhžhhŸh³h Kubeh}”(h]”ŒAmembarrier-cmd-private-global-expedited-architecture-requirements”ah ]”h"]”ŒEmembarrier_cmd_{private,global}_expedited - architecture requirements”ah$]”h&]”uh1h´hh¶hžhhŸh³h Kubeh}”(h]”Œmembarrier-system-call”ah ]”h"]”Œmembarrier() system call”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¥j jjhýj˜j•uŒ nametypes”}”(j¨‰j ‰j‰j˜‰uh}”(j¥h¶jhÉhýhÚj•juŒ 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.