Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
xcap
libcap
Commits
d36af6bc
Commit
d36af6bc
authored
Nov 16, 2015
by
Josh Kunz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds extra documentation to libcap.h
parent
69b6fabe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
include/libcap.h
include/libcap.h
+18
-2
No files found.
include/libcap.h
View file @
d36af6bc
...
...
@@ -57,11 +57,27 @@ struct cap_type_ops {
#define CAP_TYPE_MAX 256
#endif
/**
* Initalize the cptr cache subsystem
*/
void
cptr_init
(
void
);
int
cptr_alloc
(
struct
cptr_cache
*
cptr_cache
,
cptr_t
*
free_cptr
);
void
cptr_free
(
struct
cptr_cache
*
cptr_cache
,
cptr_t
c
);
/**
* Allocate and initialize a new cptr_cache.
*/
int
cptr_cache_init
(
struct
cptr_cache
**
c_out
);
/**
* Free and delete a cptr_cache
*/
void
cptr_cache_destroy
(
struct
cptr_cache
*
c
);
/**
* Allocate a new cptr in the given cptr_cache. The cptr is stored in the memory
* pointed to by 'free_cptr'.
*/
int
cptr_alloc
(
struct
cptr_cache
*
cptr_cache
,
cptr_t
*
free_cptr
);
/**
* Remove the value pointed to by the
*/
void
cptr_free
(
struct
cptr_cache
*
cptr_cache
,
cptr_t
c
);
/**
* Initializes caches, etc. in capability subsystem. Called when microkernel
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment