search for: setup_op

Displaying 1 result from an estimated 1 matches for "setup_op".

2008 Jul 11
1
Question about Using Grant Table
...>, chapter 4, "Using Grant Tables". The code sample is as following: #include <public/xen.h> extern void * shared_page; extern grant_entry_t * grant_table; void offer_page() { uint16_t flags; /* create the grant table*/ gnttab_setup_table_t setup_op; setup_op.dom =DOMID_SELF; setup_op.nr_frames = 1; setup_op.frame_list = grant_table; HYPERVISOR_grant_table_op(GNTTABOP_setup_table, &setup_op, 1); /*offer the grant */ grant_table[0].domid=DOMID_FRIEND; grant_table[0].frame = shared_page >>12;...