Resource request calls and core request handling
[akaros.git] / kern / include / resource.h
1 /*
2  * Copyright (c) 2009 The Regents of the University of California
3  * Barret Rhoden <brho@cs.berkeley.edu>
4  * See LICENSE for details.
5  *
6  * Kernel resource management.
7  */
8
9 #ifndef ROS_KERN_RESOURCE_H
10 #define ROS_KERN_RESOURCE_H
11
12 #include <ros/resource.h>
13 #include <ros/error.h>
14 #include <ros/common.h>
15 #include <arch/trap.h>
16 #include <process.h>
17
18 error_t resource_req(struct proc *p, int type, size_t amount, uint32_t flags);
19
20 void print_resources(struct proc *p);
21 void print_all_resources(void);
22
23 #endif // !ROS_KERN_RESOURCE_H