SHARE
TWEET

Untitled

a guest Jul 24th, 2012 18 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int main() {
  2. area_id my_area;
  3. my_area = create_area("my area", /* name you give to the area */
  4.       (void *)&area_addr, /* returns the starting addr */
  5.       B_ANY_ADDRESS, /* area can start anywhere */
  6.       B_PAGE_SIZE*10, /* size in bytes */
  7.       B_NO_LOCK, /* Lock in RAM? No. */
  8.       B_READ_AREA | B_WRITE_AREA); /* permissions */
  9.  
  10. delete_area(find_area("my area"));
  11. return 0;
  12. }
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. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top