File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -60,14 +60,19 @@ list shows them in order of preference of use.
60
60
This function should be preferred, where feasible, over all the others.
61
61
62
62
These mappings are thread-local and CPU-local, meaning that the mapping
63
- can only be accessed from within this thread and the thread is bound the
64
- CPU while the mapping is active. Even if the thread is preempted (since
65
- preemption is never disabled by the function) the CPU can not be
66
- unplugged from the system via CPU-hotplug until the mapping is disposed.
63
+ can only be accessed from within this thread and the thread is bound to the
64
+ CPU while the mapping is active. Although preemption is never disabled by
65
+ this function, the CPU can not be unplugged from the system via
66
+ CPU-hotplug until the mapping is disposed.
67
67
68
68
It's valid to take pagefaults in a local kmap region, unless the context
69
69
in which the local mapping is acquired does not allow it for other reasons.
70
70
71
+ As said, pagefaults and preemption are never disabled. There is no need to
72
+ disable preemption because, when context switches to a different task, the
73
+ maps of the outgoing task are saved and those of the incoming one are
74
+ restored.
75
+
71
76
kmap_local_page() always returns a valid virtual address and it is assumed
72
77
that kunmap_local() will never fail.
73
78
You can’t perform that action at this time.
0 commit comments