122 |
|
|
123 |
; Set status for THREAD-PORT. FLAVOR specifies what status |
; Set status for THREAD-PORT. FLAVOR specifies what status |
124 |
; we should set. Status data is located in STATE. |
; we should set. Status data is located in STATE. |
125 |
(define-routine thread-set-status |
(define-routine thread-state-set |
126 |
(c-name "thread_set_status") |
(c-name "thread_state_set") |
127 |
(comment "FIXME") |
(comment "FIXME") |
128 |
() |
() |
129 |
(return-type kern-return-t) |
(return-type kern-return-t) |
130 |
(arguments ((thread-port "thread" thread-t) |
(arguments ((thread-port "thread" thread-t) |
131 |
(flavor "flavor" int) |
(flavor "flavor" int) |
132 |
(state "state" thread-status-t))) |
(state "state" thread-state-t))) |
133 |
) |
) |
134 |
|
|
135 |
; Get status for THREAD-PORT. FLAVOR specifies what status |
; Get status for THREAD-PORT. FLAVOR specifies what status |
136 |
; we should get. Status data will be put in STATE. |
; we should get. Status data will be put in STATE. |
137 |
(define-routine thread-get-status |
(define-routine thread-state-get |
138 |
(c-name "thread_get_status") |
(c-name "thread_state_get") |
139 |
(comment "FIXME") |
(comment "FIXME") |
140 |
() |
() |
141 |
(return-type kern-return-t) |
(return-type kern-return-t) |
142 |
(arguments ((thread-port "thread" thread-t) |
(arguments ((thread-port "thread" thread-t) |
143 |
(flavor "flavor" int) |
(flavor "flavor" int) |
144 |
(state "state" thread-status-t AD_INOUT))) |
(state "state" thread-state-t AD_INOUT))) |
145 |
) |
) |
146 |
|
|
147 |
|
|
212 |
() |
() |
213 |
(return-type kern-return-t) |
(return-type kern-return-t) |
214 |
(arguments ((task "task" task-t) |
(arguments ((task "task" task-t) |
215 |
(object "object" memory-object-t) |
(address "address" vm-offset-t AD_INOUT) |
|
(offset-x "offset" vm-offset-t AD_INOUT) |
|
216 |
(size "size" vm-size-t) |
(size "size" vm-size-t) |
217 |
(anywhere "anywhere" int) |
(anywhere "anywhere" int) |
218 |
|
(object "object" rtmk-port-t) |
219 |
|
(offset-x "offset" vm-offset-t) |
220 |
|
(copy-p "copy_p" int) |
221 |
(prot "prot" vm-prot-t) |
(prot "prot" vm-prot-t) |
222 |
|
(max-prot "max_prot" vm-prot-t) |
223 |
(inherit "inherit" vm-inherit-t))) |
(inherit "inherit" vm-inherit-t))) |
224 |
) |
) |
225 |
|
|
331 |
(arguments ((task-port "task" task-t) |
(arguments ((task-port "task" task-t) |
332 |
(evcp "evcp" eventcnt-t AD_IN))) |
(evcp "evcp" eventcnt-t AD_IN))) |
333 |
) |
) |
334 |
|
|
335 |
|
|
336 |
|
; Data range [OFFSET, OFFSET+SIZE) is unavailable in OBJECT. |
337 |
|
; Region will be zero filled. |
338 |
|
(define-routine memory-object-data-unavail |
339 |
|
(c-name "memory_object_data_unavail") |
340 |
|
(comment "????") |
341 |
|
() |
342 |
|
(return-type void) |
343 |
|
(arguments ((mem-obj "object" rtmk-port-t) |
344 |
|
(offset-x "offset" vm-offset-t) |
345 |
|
(size "size" vm-size-t))) |
346 |
|
) |
347 |
|
|
348 |
|
; Supply data for region [OFFSET, OFFSET+SIZE) in |
349 |
|
; OBJECT. ADDRESS points at location in pagers address |
350 |
|
; space. |
351 |
|
(define-routine memory-object-data-supply |
352 |
|
(c-name "memory_object_data_supply") |
353 |
|
(comment "supply SIZE bytes of data to MEM-OBJ") |
354 |
|
() |
355 |
|
(return-type void) |
356 |
|
(arguments ((mem-obj "object" rtmk-port-t) |
357 |
|
(offset-x "offset" vm-offset-t) |
358 |
|
(address "address" vm-offset-t) |
359 |
|
(size "size" vm-size-t) |
360 |
|
(dealloc "dealloc" int) |
361 |
|
(lock-value "lock_value" vm-prot-t) |
362 |
|
(precious "precious" int))) |
363 |
|
) |
364 |
|
|
365 |
|
; Set attributes for OBJECT. |
366 |
|
(define-routine memory-object-set-attributes |
367 |
|
(c-name "memory_object_set_attributes") |
368 |
|
(comment "set attributes for MEM-OBJ") |
369 |
|
() |
370 |
|
(return-type kern-return-t) |
371 |
|
(arguments ((mem-obj "object" rtmk-port-t) |
372 |
|
(ready-p "ready_p" int) |
373 |
|
(cache-p "cache_p" int) |
374 |
|
(copy-strat "copy_strat" int))) |
375 |
|
) |
376 |
|
|
377 |
|
; Change attributes for OBJECT. |
378 |
|
(define-routine memory-object-change-attributes |
379 |
|
(c-name "memory_object_change_attributes") |
380 |
|
(comment "change attributes for MEM-OBJ") |
381 |
|
() |
382 |
|
(return-type kern-return-t) |
383 |
|
(arguments ((mem-obj "object" rtmk-port-t) |
384 |
|
(ready-p "ready_p" int) |
385 |
|
(copy-strat "copy_strat" int))) |
386 |
|
) |