]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/personality.h
mm/hotplug: invalid PFNs from pfn_to_online_page()
[mirror_ubuntu-bionic-kernel.git] / include / linux / personality.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4
LT
2#ifndef _LINUX_PERSONALITY_H
3#define _LINUX_PERSONALITY_H
4
607ca46e
DH
5#include <uapi/linux/personality.h>
6
1da177e4
LT
7/*
8 * Return the base personality without flags.
9 */
10#define personality(pers) (pers & PER_MASK)
11
1da177e4
LT
12/*
13 * Change personality of the currently running process.
14 */
9058f3b3 15#define set_personality(pers) (current->personality = (pers))
1da177e4
LT
16
17#endif /* _LINUX_PERSONALITY_H */