Changes between Version 32 and Version 33 of kernel_syscalls
- Timestamp:
- Feb 11, 2015, 7:40:48 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
kernel_syscalls
v32 v33 166 166 Returns in the arguments the 2D mesh size (only clusters containing processors), and the number of processors per cluster. 167 167 168 === 9) int '''_sys_v obj_get_vbase'''( char* vspace_name, char* vobj_name, unsigned int* vbase ) ===169 This function returns in the ''vbase'' argument the virtual base address of the vobj identified by the (vspace_name / vobj_name ) couple. Returns 0 if success, -1 if vobj not found.168 === 9) int '''_sys_vseg_get_vbase'''( char* vspace_name, char* vobj_name, unsigned int* vbase ) === 169 This function returns in the ''vbase'' argument the virtual base address of the private vseg identified by the (vspace_name / vseg_name ) couple. Returns 0 if success, -1 if vobj not found. 170 170 171 === 10) int '''_sys_v obj_get_length'''( char* vspace_name, char* vobj_name, unsigned int* length ) ===172 This function returns in the ''length'' argument the length of the vobj identified by the (vspace_name / vobj_name ) couple. Returns 0 if success, -1 if vobj not found171 === 10) int '''_sys_vseg_get_length'''( char* vspace_name, char* vseg_name, unsigned int* length ) === 172 This function returns in the ''length'' argument the length of the private vseg identified by the (vspace_name / vseg_name ) couple. Returns 0 if success, -1 if vobj not found 173 173 174 174 === 11) int '''_sys_xy_from_ptr'''( void* ptr, unsigned int* x, unsigned int* y ) === … … 176 176 177 177 === 12) int '''_sys_heap_info'''( unsigned int* vaddr, unsigned int* length, unsigned int x, unsigned int y ) === 178 This function returns the information associated to a heap: vaddr and length.178 This function returns the information associated to a user heap vseg : vaddr and length. 179 179 * If (x < X_SIZE) and (y < Y_SIZE), it return the heap associated to any task running in cluster(x,y). 180 180 * else, it return the heap associated to the calling task. 181 It uses the global task index (CTX_GTID_ID, unique for each giet task) and the vspace index (CTX_VSID_ID), that are defined in the calling task context to find the vobj_id containing the heap.182 181 Returns 0 if success, returns -1 if not found. 183 182