- int main() {
- area_id my_area;
- my_area = create_area("my area", /* name you give to the area */
- (void *)&area_addr, /* returns the starting addr */
- B_ANY_ADDRESS, /* area can start anywhere */
- B_PAGE_SIZE*10, /* size in bytes */
- B_NO_LOCK, /* Lock in RAM? No. */
- B_READ_AREA | B_WRITE_AREA); /* permissions */
- delete_area(find_area("my area"));
- return 0;
- }
SHARE
TWEET
Untitled
a guest
Jul 24th, 2012
18
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

