File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,13 @@ list shows them in order of preference of use.
77
77
for pages which are known to not come from ZONE_HIGHMEM. However, it is
78
78
always safe to use kmap_local_page() / kunmap_local().
79
79
80
+ While it is significantly faster than kmap(), for the higmem case it
81
+ comes with restrictions about the pointers validity. Contrary to kmap()
82
+ mappings, the local mappings are only valid in the context of the caller
83
+ and cannot be handed to other contexts. This implies that users must
84
+ be absolutely sure to keep the use of the return address local to the
85
+ thread which mapped it.
86
+
80
87
Nesting kmap_local_page() and kmap_atomic() mappings is allowed to a certain
81
88
extent (up to KMAP_TYPE_NR) but their invocations have to be strictly ordered
82
89
because the map implementation is stack based. See kmap_local_page() kdocs
You can’t perform that action at this time.
0 commit comments