1ab8bcad6SPaul E. McKenneyIt has been said that successful communication requires first identifying
2ab8bcad6SPaul E. McKenneywhat your audience knows and then building a bridge from their current
3ab8bcad6SPaul E. McKenneyknowledge to what they need to know.  Unfortunately, the expected
4ab8bcad6SPaul E. McKenneyLinux-kernel memory model (LKMM) audience might be anywhere from novice
5ab8bcad6SPaul E. McKenneyto expert both in kernel hacking and in understanding LKMM.
6ab8bcad6SPaul E. McKenney
7ab8bcad6SPaul E. McKenneyThis document therefore points out a number of places to start reading,
8ab8bcad6SPaul E. McKenneydepending on what you know and what you would like to learn.  Please note
9ab8bcad6SPaul E. McKenneythat the documents later in this list assume that the reader understands
10ab8bcad6SPaul E. McKenneythe material provided by documents earlier in this list.
11ab8bcad6SPaul E. McKenney
12*9bc931e9SAkira YokosawaIf LKMM-specific terms lost you, glossary.txt might help you.
13*9bc931e9SAkira Yokosawa
14ab8bcad6SPaul E. McKenneyo	You are new to Linux-kernel concurrency: simple.txt
15ab8bcad6SPaul E. McKenney
16ebb477cbSPaul E. McKenneyo	You have some background in Linux-kernel concurrency, and would
17ebb477cbSPaul E. McKenney	like an overview of the types of low-level concurrency primitives
18ebb477cbSPaul E. McKenney	that the Linux kernel provides:  ordering.txt
19ebb477cbSPaul E. McKenney
20ebb477cbSPaul E. McKenney	Here, "low level" means atomic operations to single variables.
21ebb477cbSPaul E. McKenney
22ab8bcad6SPaul E. McKenneyo	You are familiar with the Linux-kernel concurrency primitives
23ab8bcad6SPaul E. McKenney	that you need, and just want to get started with LKMM litmus
24ab8bcad6SPaul E. McKenney	tests:  litmus-tests.txt
25ab8bcad6SPaul E. McKenney
26*9bc931e9SAkira Yokosawao	You would like to access lock-protected shared variables without
27*9bc931e9SAkira Yokosawa	having their corresponding locks held:  locking.txt
28*9bc931e9SAkira Yokosawa
29ab8bcad6SPaul E. McKenneyo	You are familiar with Linux-kernel concurrency, and would
30ab8bcad6SPaul E. McKenney	like a detailed intuitive understanding of LKMM, including
31ab8bcad6SPaul E. McKenney	situations involving more than two threads:  recipes.txt
32ab8bcad6SPaul E. McKenney
33ebb477cbSPaul E. McKenneyo	You would like a detailed understanding of what your compiler can
34ebb477cbSPaul E. McKenney	and cannot do to control dependencies:  control-dependencies.txt
35ebb477cbSPaul E. McKenney
36*9bc931e9SAkira Yokosawao	You would like to mark concurrent normal accesses to shared
37*9bc931e9SAkira Yokosawa	variables so that intentional "racy" accesses can be properly
38*9bc931e9SAkira Yokosawa	documented, especially when you are responding to complaints
39*9bc931e9SAkira Yokosawa	from KCSAN:  access-marking.txt
40*9bc931e9SAkira Yokosawa
41ab8bcad6SPaul E. McKenneyo	You are familiar with Linux-kernel concurrency and the use of
42ab8bcad6SPaul E. McKenney	LKMM, and would like a quick reference:  cheatsheet.txt
43ab8bcad6SPaul E. McKenney
44ab8bcad6SPaul E. McKenneyo	You are familiar with Linux-kernel concurrency and the use
45ab8bcad6SPaul E. McKenney	of LKMM, and would like to learn about LKMM's requirements,
46e8adbac0SAndrea Parri	rationale, and implementation:	explanation.txt and
47e8adbac0SAndrea Parri	herd-representation.txt
48ab8bcad6SPaul E. McKenney
49ab8bcad6SPaul E. McKenneyo	You are interested in the publications related to LKMM, including
50ab8bcad6SPaul E. McKenney	hardware manuals, academic literature, standards-committee
51ab8bcad6SPaul E. McKenney	working papers, and LWN articles:  references.txt
52ab8bcad6SPaul E. McKenney
53ab8bcad6SPaul E. McKenney
54ab8bcad6SPaul E. McKenney====================
55ab8bcad6SPaul E. McKenneyDESCRIPTION OF FILES
56ab8bcad6SPaul E. McKenney====================
57ab8bcad6SPaul E. McKenney
58ab8bcad6SPaul E. McKenneyREADME
59ab8bcad6SPaul E. McKenney	This file.
60ab8bcad6SPaul E. McKenney
61520c637bSPaul E. McKenneyaccess-marking.txt
62520c637bSPaul E. McKenney	Guidelines for marking intentionally concurrent accesses to
63520c637bSPaul E. McKenney	shared memory.
64520c637bSPaul E. McKenney
65ab8bcad6SPaul E. McKenneycheatsheet.txt
66ab8bcad6SPaul E. McKenney	Quick-reference guide to the Linux-kernel memory model.
67ab8bcad6SPaul E. McKenney
68ebb477cbSPaul E. McKenneycontrol-dependencies.txt
69ebb477cbSPaul E. McKenney	Guide to preventing compiler optimizations from destroying
70ebb477cbSPaul E. McKenney	your control dependencies.
71ebb477cbSPaul E. McKenney
72ab8bcad6SPaul E. McKenneyexplanation.txt
73ab8bcad6SPaul E. McKenney	Detailed description of the memory model.
74ab8bcad6SPaul E. McKenney
75*9bc931e9SAkira Yokosawaglossary.txt
76*9bc931e9SAkira Yokosawa	Brief definitions of LKMM-related terms.
77*9bc931e9SAkira Yokosawa
78e8adbac0SAndrea Parriherd-representation.txt
79e8adbac0SAndrea Parri	The (abstract) representation of the Linux-kernel concurrency
80e8adbac0SAndrea Parri	primitives in terms of events.
81e8adbac0SAndrea Parri
82ab8bcad6SPaul E. McKenneylitmus-tests.txt
83ab8bcad6SPaul E. McKenney	The format, features, capabilities, and limitations of the litmus
84ab8bcad6SPaul E. McKenney	tests that LKMM can evaluate.
85ab8bcad6SPaul E. McKenney
86*9bc931e9SAkira Yokosawalocking.txt
87*9bc931e9SAkira Yokosawa	Rules for accessing lock-protected shared variables outside of
88*9bc931e9SAkira Yokosawa	their corresponding critical sections.
89*9bc931e9SAkira Yokosawa
90ebb477cbSPaul E. McKenneyordering.txt
91ebb477cbSPaul E. McKenney	Overview of the Linux kernel's low-level memory-ordering
92ebb477cbSPaul E. McKenney	primitives by category.
93ebb477cbSPaul E. McKenney
94ab8bcad6SPaul E. McKenneyrecipes.txt
95ab8bcad6SPaul E. McKenney	Common memory-ordering patterns.
96ab8bcad6SPaul E. McKenney
97ab8bcad6SPaul E. McKenneyreferences.txt
98ab8bcad6SPaul E. McKenney	Background information.
99ab8bcad6SPaul E. McKenney
100ab8bcad6SPaul E. McKenneysimple.txt
101ab8bcad6SPaul E. McKenney	Starting point for someone new to Linux-kernel concurrency.
102ab8bcad6SPaul E. McKenney	And also a reminder of the simpler approaches to concurrency!
103