Clean up to kernel code, Added `used' field to capabilities

With the addition of used field, capability structure can be
used for resource accounting over the capability.
This commit is contained in:
Bahadir Balban
2009-08-21 12:10:34 +03:00
parent d14f91c668
commit de087eb1f8
6 changed files with 35 additions and 19 deletions

View File

@@ -59,6 +59,9 @@ struct capability {
unsigned long start; /* Resource start value */
unsigned long end; /* Resource end value */
unsigned long size; /* Resource size */
/* Used amount on resource */
unsigned long used;
};
struct cap_list {