ANDROID: mm: export symbol for vendor module
export symbols for vendor module for custom madvise behavior - mm_access, pidfd_get_pid, swp_swapcount Bug: 351175506 Change-Id: I55a48d09fa61b74a00eba32723eca16153d309ec Signed-off-by: Sooyong Suk <s.suk@samsung.corp-partner.google.com>
This commit is contained in:
committed by
Suren Baghdasaryan
parent
852e218b49
commit
7b7404ab99
@@ -1583,6 +1583,7 @@ struct mm_struct *mm_access(struct task_struct *task, unsigned int mode)
|
||||
|
||||
return mm;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(mm_access);
|
||||
|
||||
static void complete_vfork_done(struct task_struct *tsk)
|
||||
{
|
||||
|
||||
@@ -553,6 +553,7 @@ struct pid *pidfd_get_pid(unsigned int fd, unsigned int *flags)
|
||||
fdput(f);
|
||||
return pid;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(pidfd_get_pid);
|
||||
|
||||
/**
|
||||
* pidfd_get_task() - Get the task associated with a pidfd
|
||||
|
||||
@@ -1785,6 +1785,7 @@ out:
|
||||
unlock_cluster_or_swap_info(si, ci);
|
||||
return count;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(swp_swapcount);
|
||||
|
||||
static bool swap_page_trans_huge_swapped(struct swap_info_struct *si,
|
||||
swp_entry_t entry, int order)
|
||||
|
||||
Reference in New Issue
Block a user