Changeset 450 for trunk/kernel/kern/rpc.c
- Timestamp:
- Jun 29, 2018, 10:44:14 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/rpc.c
r441 r450 77 77 &rpc_mapper_get_page_server, // 25 78 78 &rpc_vmm_create_vseg_server, // 26 79 &rpc_ sched_display_server, // 2779 &rpc_undefined, // 27 unused slot 80 80 &rpc_vmm_set_cow_server, // 28 81 81 &rpc_vmm_display_server, // 29 … … 2063 2063 2064 2064 ///////////////////////////////////////////////////////////////////////////////////////// 2065 // [27] Marshaling functions attached to RPC_SCHED_DISPLAY (blocking) 2066 ///////////////////////////////////////////////////////////////////////////////////////// 2067 2068 //////////////////////////////////////////////////////// 2069 void rpc_sched_display_client( cxy_t cxy, 2070 lid_t lid) 2071 { 2072 assert( (cxy != local_cxy) , __FUNCTION__ , "target cluster is not remote\n"); 2073 2074 // initialise RPC descriptor header 2075 rpc_desc_t rpc; 2076 rpc.index = RPC_SCHED_DISPLAY; 2077 rpc.blocking = true; 2078 rpc.responses = 1; 2079 2080 // set input arguments in RPC descriptor 2081 rpc.args[0] = (uint64_t)lid; 2082 2083 // register RPC request in remote RPC fifo 2084 rpc_send( cxy , &rpc ); 2085 2086 } 2087 2088 ////////////////////////////////////////// 2089 void rpc_sched_display_server( xptr_t xp ) 2090 { 2091 // get client cluster identifier and pointer on RPC descriptor 2092 cxy_t cxy = GET_CXY( xp ); 2093 rpc_desc_t * desc = GET_PTR( xp ); 2094 2095 // get input arguments from client RPC descriptor 2096 lid_t lid = (lid_t)hal_remote_lwd( XPTR(cxy , &desc->args[0])); 2097 2098 // call local kernel function 2099 sched_display( lid ); 2100 2101 } 2065 // [27] undefined slot 2066 ///////////////////////////////////////////////////////////////////////////////////////// 2102 2067 2103 2068 /////////////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.