blob: bdf491cbcab78164c7d573f73a8aa84dfb3b87ee [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#ifndef _LINUX_RESOURCE_H
3#define _LINUX_RESOURCE_H
4
David Howells607ca462012-10-13 10:46:48 +01005#include <uapi/linux/resource.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07006
Jiri Slaby96d07d22009-11-20 14:16:33 +01007
8struct task_struct;
9
Al Viroce72a162017-05-14 20:25:02 -040010void getrusage(struct task_struct *p, int who, struct rusage *ru);
Jiri Slaby5b415352010-03-24 16:11:29 +010011int do_prlimit(struct task_struct *tsk, unsigned int resource,
12 struct rlimit *new_rlim, struct rlimit *old_rlim);
Adrian Bunk83cc5ed2006-06-25 05:47:41 -070013
Linus Torvalds1da177e2005-04-16 15:20:36 -070014#endif