€•)RŒ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/dev-tools/lkmm/docs/herd-representation”Œ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/dev-tools/lkmm/docs/herd-representation”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ;/translations/it_IT/dev-tools/lkmm/docs/herd-representation”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ;/translations/ja_JP/dev-tools/lkmm/docs/herd-representation”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ;/translations/ko_KR/dev-tools/lkmm/docs/herd-representation”Œ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/dev-tools/lkmm/docs/herd-representation”Œ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ŸŒU/var/lib/git/docbuild/linux/Documentation/dev-tools/lkmm/docs/herd-representation.rst”h KubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒherd-representation”h]”hŒherd-representation”…””}”(hh»hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hh¶hžhhŸh³h KubhŒ paragraph”“”)”}”(hŒPLiteral include of ``tools/memory-model/Documentation/herd-representation.txt``.”h]”(hŒLiteral include of ”…””}”(hhËhžhhŸNh NubhŒliteral”“”)”}”(hŒ<``tools/memory-model/Documentation/herd-representation.txt``”h]”hŒ8tools/memory-model/Documentation/herd-representation.txt”…””}”(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 Khh¶hžhubhŒ transition”“”)”}”(hŒB------------------------------------------------------------------”h]”h}”(h]”h ]”h"]”h$]”h&]”uh1híhŸh³h Khh¶hžhubhŒ literal_block”“”)”}”(hX$# # Legend: # R, a Load event # W, a Store event # F, a Fence event # LKR, a Lock-Read event # LKW, a Lock-Write event # UL, an Unlock event # LF, a Lock-Fail event # RL, a Read-Locked event # RU, a Read-Unlocked event # R*, a Load event included in RMW # W*, a Store event included in RMW # SRCU, a Sleepable-Read-Copy-Update event # # po, a Program-Order link # rmw, a Read-Modify-Write link - every rmw link is a po link # # By convention, a blank line in a cell means "same as the preceding line". # # Note that the syntactic representation does not always match the sets and # relations in linux-kernel.cat, due to redefinitions in linux-kernel.bell and # lock.cat. For example, the po link between LKR and LKW is upgraded to an rmw # link, and W[ACQUIRE] are not included in the Acquire set. # # Disclaimer. The table includes representations of "add" and "and" operations; # corresponding/identical representations of "sub", "inc", "dec" and "or", "xor", # "andnot" operations are omitted. # ------------------------------------------------------------------------------ | C macro | Events | ------------------------------------------------------------------------------ | Non-RMW ops | | ------------------------------------------------------------------------------ | READ_ONCE | R[ONCE] | | atomic_read | | | WRITE_ONCE | W[ONCE] | | atomic_set | | | smp_load_acquire | R[ACQUIRE] | | atomic_read_acquire | | | smp_store_release | W[RELEASE] | | atomic_set_release | | | smp_store_mb | W[ONCE] ->po F[MB] | | smp_mb | F[MB] | | smp_rmb | F[rmb] | | smp_wmb | F[wmb] | | smp_mb__before_atomic | F[before-atomic] | | smp_mb__after_atomic | F[after-atomic] | | spin_unlock | UL | | spin_is_locked | On success: RL | | | On failure: RU | | smp_mb__after_spinlock | F[after-spinlock] | | smp_mb__after_unlock_lock | F[after-unlock-lock] | | rcu_read_lock | F[rcu-lock] | | rcu_read_unlock | F[rcu-unlock] | | synchronize_rcu | F[sync-rcu] | | rcu_dereference | R[ONCE] | | rcu_assign_pointer | W[RELEASE] | | srcu_read_lock | R[srcu-lock] | | srcu_down_read | | | srcu_read_unlock | W[srcu-unlock] | | srcu_up_read | | | synchronize_srcu | SRCU[sync-srcu] | | smp_mb__after_srcu_read_unlock | F[after-srcu-read-unlock] | ------------------------------------------------------------------------------ | RMW ops w/o return value | | ------------------------------------------------------------------------------ | atomic_add | R*[NORETURN] ->rmw W*[NORETURN] | | atomic_and | | | spin_lock | LKR ->po LKW | ------------------------------------------------------------------------------ | RMW ops w/ return value | | ------------------------------------------------------------------------------ | atomic_add_return | R*[MB] ->rmw W*[MB] | | atomic_fetch_add | | | atomic_fetch_and | | | atomic_xchg | | | xchg | | | atomic_add_negative | | | atomic_add_return_relaxed | R*[ONCE] ->rmw W*[ONCE] | | atomic_fetch_add_relaxed | | | atomic_fetch_and_relaxed | | | atomic_xchg_relaxed | | | xchg_relaxed | | | atomic_add_negative_relaxed | | | atomic_add_return_acquire | R*[ACQUIRE] ->rmw W*[ACQUIRE] | | atomic_fetch_add_acquire | | | atomic_fetch_and_acquire | | | atomic_xchg_acquire | | | xchg_acquire | | | atomic_add_negative_acquire | | | atomic_add_return_release | R*[RELEASE] ->rmw W*[RELEASE] | | atomic_fetch_add_release | | | atomic_fetch_and_release | | | atomic_xchg_release | | | xchg_release | | | atomic_add_negative_release | | ------------------------------------------------------------------------------ | Conditional RMW ops | | ------------------------------------------------------------------------------ | atomic_cmpxchg | On success: R*[MB] ->rmw W*[MB] | | | On failure: R*[MB] | | cmpxchg | | | atomic_add_unless | | | atomic_cmpxchg_relaxed | On success: R*[ONCE] ->rmw W*[ONCE] | | | On failure: R*[ONCE] | | atomic_cmpxchg_acquire | On success: R*[ACQUIRE] ->rmw W*[ACQUIRE] | | | On failure: R*[ACQUIRE] | | atomic_cmpxchg_release | On success: R*[RELEASE] ->rmw W*[RELEASE] | | | On failure: R*[RELEASE] | | spin_trylock | On success: LKR ->po LKW | | | On failure: LF | ------------------------------------------------------------------------------ ”h]”hX®# # Legend: # R, a Load event # W, a Store event # F, a Fence event # LKR, a Lock-Read event # LKW, a Lock-Write event # UL, an Unlock event # LF, a Lock-Fail event # RL, a Read-Locked event # RU, a Read-Unlocked event # R*, a Load event included in RMW # W*, a Store event included in RMW # SRCU, a Sleepable-Read-Copy-Update event # # po, a Program-Order link # rmw, a Read-Modify-Write link - every rmw link is a po link # # By convention, a blank line in a cell means "same as the preceding line". # # Note that the syntactic representation does not always match the sets and # relations in linux-kernel.cat, due to redefinitions in linux-kernel.bell and # lock.cat. For example, the po link between LKR and LKW is upgraded to an rmw # link, and W[ACQUIRE] are not included in the Acquire set. # # Disclaimer. The table includes representations of "add" and "and" operations; # corresponding/identical representations of "sub", "inc", "dec" and "or", "xor", # "andnot" operations are omitted. # ------------------------------------------------------------------------------ | C macro | Events | ------------------------------------------------------------------------------ | Non-RMW ops | | ------------------------------------------------------------------------------ | READ_ONCE | R[ONCE] | | atomic_read | | | WRITE_ONCE | W[ONCE] | | atomic_set | | | smp_load_acquire | R[ACQUIRE] | | atomic_read_acquire | | | smp_store_release | W[RELEASE] | | atomic_set_release | | | smp_store_mb | W[ONCE] ->po F[MB] | | smp_mb | F[MB] | | smp_rmb | F[rmb] | | smp_wmb | F[wmb] | | smp_mb__before_atomic | F[before-atomic] | | smp_mb__after_atomic | F[after-atomic] | | spin_unlock | UL | | spin_is_locked | On success: RL | | | On failure: RU | | smp_mb__after_spinlock | F[after-spinlock] | | smp_mb__after_unlock_lock | F[after-unlock-lock] | | rcu_read_lock | F[rcu-lock] | | rcu_read_unlock | F[rcu-unlock] | | synchronize_rcu | F[sync-rcu] | | rcu_dereference | R[ONCE] | | rcu_assign_pointer | W[RELEASE] | | srcu_read_lock | R[srcu-lock] | | srcu_down_read | | | srcu_read_unlock | W[srcu-unlock] | | srcu_up_read | | | synchronize_srcu | SRCU[sync-srcu] | | smp_mb__after_srcu_read_unlock | F[after-srcu-read-unlock] | ------------------------------------------------------------------------------ | RMW ops w/o return value | | ------------------------------------------------------------------------------ | atomic_add | R*[NORETURN] ->rmw W*[NORETURN] | | atomic_and | | | spin_lock | LKR ->po LKW | ------------------------------------------------------------------------------ | RMW ops w/ return value | | ------------------------------------------------------------------------------ | atomic_add_return | R*[MB] ->rmw W*[MB] | | atomic_fetch_add | | | atomic_fetch_and | | | atomic_xchg | | | xchg | | | atomic_add_negative | | | atomic_add_return_relaxed | R*[ONCE] ->rmw W*[ONCE] | | atomic_fetch_add_relaxed | | | atomic_fetch_and_relaxed | | | atomic_xchg_relaxed | | | xchg_relaxed | | | atomic_add_negative_relaxed | | | atomic_add_return_acquire | R*[ACQUIRE] ->rmw W*[ACQUIRE] | | atomic_fetch_add_acquire | | | atomic_fetch_and_acquire | | | atomic_xchg_acquire | | | xchg_acquire | | | atomic_add_negative_acquire | | | atomic_add_return_release | R*[RELEASE] ->rmw W*[RELEASE] | | atomic_fetch_add_release | | | atomic_fetch_and_release | | | atomic_xchg_release | | | xchg_release | | | atomic_add_negative_release | | ------------------------------------------------------------------------------ | Conditional RMW ops | | ------------------------------------------------------------------------------ | atomic_cmpxchg | On success: R*[MB] ->rmw W*[MB] | | | On failure: R*[MB] | | cmpxchg | | | atomic_add_unless | | | atomic_cmpxchg_relaxed | On success: R*[ONCE] ->rmw W*[ONCE] | | | On failure: R*[ONCE] | | atomic_cmpxchg_acquire | On success: R*[ACQUIRE] ->rmw W*[ACQUIRE] | | | On failure: R*[ACQUIRE] | | atomic_cmpxchg_release | On success: R*[RELEASE] ->rmw W*[RELEASE] | | | On failure: R*[RELEASE] | | spin_trylock | On success: LKR ->po LKW | | | On failure: LF | ------------------------------------------------------------------------------ ”…””}”hhûsbah}”(h]”h ]”h"]”h$]”h&]”Œsource”ŒT/var/lib/git/docbuild/linux/tools/memory-model/Documentation/herd-representation.txt”h±h²uh1hùh Khh¶hžhhŸh³ubeh}”(h]”Œherd-representation”ah ]”h"]”Œherd-representation”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”j6Œ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”}”jj 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.