mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02:00
ANDROID: export find_user() & free_uid()for GKI purpose.
Exporting the symbol find_user()& free_uid(), in which ko module can get user task information for tuning. Bug: 183674818 Signed-off-by: lijianzhong <lijianzhong@xiaomi.com> Change-Id: I12135c0af312904dd21b6f074beda086ad5ece98
This commit is contained in:
parent
bc7711817e
commit
16350016d8
|
|
@ -160,6 +160,7 @@ struct user_struct *find_user(kuid_t uid)
|
||||||
spin_unlock_irqrestore(&uidhash_lock, flags);
|
spin_unlock_irqrestore(&uidhash_lock, flags);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(find_user);
|
||||||
|
|
||||||
void free_uid(struct user_struct *up)
|
void free_uid(struct user_struct *up)
|
||||||
{
|
{
|
||||||
|
|
@ -171,6 +172,7 @@ void free_uid(struct user_struct *up)
|
||||||
if (refcount_dec_and_lock_irqsave(&up->__count, &uidhash_lock, &flags))
|
if (refcount_dec_and_lock_irqsave(&up->__count, &uidhash_lock, &flags))
|
||||||
free_user(up, flags);
|
free_user(up, flags);
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(free_uid);
|
||||||
|
|
||||||
struct user_struct *alloc_uid(kuid_t uid)
|
struct user_struct *alloc_uid(kuid_t uid)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user