We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b3afe2 commit 84b86f6Copy full SHA for 84b86f6
Documentation/mm/highmem.rst
@@ -84,6 +84,11 @@ list shows them in order of preference of use.
84
be absolutely sure to keep the use of the return address local to the
85
thread which mapped it.
86
87
+ Most code can be designed to use thread local mappings. User should
88
+ therefore try to design their code to avoid the use of kmap() by mapping
89
+ pages in the same thread the address will be used and prefer
90
+ kmap_local_page().
91
+
92
Nesting kmap_local_page() and kmap_atomic() mappings is allowed to a certain
93
extent (up to KMAP_TYPE_NR) but their invocations have to be strictly ordered
94
because the map implementation is stack based. See kmap_local_page() kdocs
0 commit comments