mirror of
https://github.com/drasko/codezero.git
synced 2026-02-01 20:53:16 +01:00
Added a device attribute to capabilities - In progress
Followed the kernel physical memory reservation convention with devices. Devices that are possessable by userspace are created as boot-time capabilities and placed under the kernel resources devmem_free capability list. Any userspace container that is defined with the possession of the device would delete the device capability making it unavailable to further requests.
This commit is contained in:
@@ -71,8 +71,11 @@ struct capability {
|
||||
unsigned long end; /* Resource end value */
|
||||
unsigned long size; /* Resource size */
|
||||
|
||||
/* Used amount on resource _or_ user-defined attributes */
|
||||
unsigned long user;
|
||||
/* Use count of resource */
|
||||
unsigned long used;
|
||||
|
||||
/* User-defined attributes on capability (like devtypes) */
|
||||
unsigned int uattr;
|
||||
};
|
||||
|
||||
struct cap_list {
|
||||
|
||||
Reference in New Issue
Block a user