Commit 638a31d6 authored by Richard Chang's avatar Richard Chang Committed by David Stevens
Browse files

ANDROID: export symbols for zram module



The zram module is being updated to allow initiating writeback on behalf
of a specific userspace process. This requires the zram module to call
several core kernel functions to access the process's memory map and
walk its page tables.

Export the following symbols so they can be used by the zram module:
 - mm_access: To get a reference to the process's mm_struct.
 - pidfd_get_task: To get the task_struct from a pidfd.
 - walk_page_range: To iterate over the process's page table entries.
 - __pte_offset_map_lock: To map and lock a PTE.

This change is a prerequisite for adding the new per-process writeback
ioctl to zram.

Bug: 421065577
Change-Id: I16eb8aec0f4a8c4a23f73fba74b309cc5b4d69dd
Signed-off-by: default avatarRichard Chang <richardycc@google.com>
(cherry picked from commit d169319e)
Bug: 446676432
Signed-off-by: default avatarDavid Stevens <stevensd@google.com>
parent 47a0b8f4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment