summaryrefslogtreecommitdiff
path: root/viengoos/activity.h
diff options
context:
space:
mode:
authorneal <neal>2007-11-28 20:34:32 +0000
committerneal <neal>2007-11-28 20:34:32 +0000
commit12d97bb06786ed9dececa979e4abb3aad8cc5ff4 (patch)
tree9232b1c74f54f70aa59c639f68f61c9a9de6b80f /viengoos/activity.h
parenta9b17e6236a493d7f5354a7ebc0723ded83bc2bd (diff)
hurd/
2007-11-28 Neal H. Walfield <neal@gnu.org> * Makefile.am (includehurd_HEADERS): Add activity.h. * headers.m4: Create link from ../include/hurd/activity.h to activity.h. * activity.h: New file. viengoos/ 2007-11-28 Neal H. Walfield <neal@gnu.org> * activity.h (activity_allocate): Rename from this... (activity_create): ... to this. Remove arguments caller, folio, indent, activity and control. Add argument child. Update users. * activity.c (activity_allocate): Rename from this... (activity_create): ... to this. Remove arguments caller, folio, indent, activity and control. Add argument child. If CHILD is live, destroy it first. Correctly add CHILD to PARENT's children list. * activity.h (activity_destroy): Remove argument cap. Update callers. * activity.c (activity_destroy): Remove argument cap. Correctly destroy child activities and allocated folios. Correctly unlink from parent. * server.c (CAP_): Remove argument writablep. Add argument require_writable. Fail if REQUIRE_WRITABLE is true, and the object is not writable. (OBJECT_): Likewise. (CAP): Remove argument writablep. Add argument require_writable. Update callers. (OBJECT): Likewise. (server_loop): Add support for the activity_create method. * object.c (folio_free): Also update FOLIO->FOLIO_VERSION. (folio_object_alloc): Check if the object is a cap_activity_control, not a cap_activity. (folio_reparent): Correctly link FOLIO to PARENT. * t-as.c (test): Don't create a cap_activity object but a cap_activity_control object. * viengoos.c (system_task_load): Likewise. * cap.c (cap_to_object): Use cap_types_compatible when asserting that the capability's type and the object's type are identical. * thread.c (thread_exregs): Use cap_types_compatible when checking whether the thread has a valid activity object. * rm.h: Include <hurd/activity.h>. (rm_method_id_string): Handle the RM_activity_create case. ruth/ 2007-11-28 Neal H. Walfield <neal@gnu.org> * ruth.c: Include <hurd/activity.h>. (main): Add test for activity_create.
Diffstat (limited to 'viengoos/activity.h')
-rw-r--r--viengoos/activity.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/viengoos/activity.h b/viengoos/activity.h
index 64b557a..868070d 100644
--- a/viengoos/activity.h
+++ b/viengoos/activity.h
@@ -78,14 +78,13 @@ struct activity
activity and the activity's control capability, respectively.
PRIORITY, WEIGHT and STORAGE_QUOTA are the initial priority and
weight of the activity. */
-extern error_t activity_allocate (struct activity *parent,
- struct thread *caller,
- addr_t folio, l4_word_t index,
- addr_t activity, addr_t control,
- l4_word_t priority, l4_word_t weight,
- l4_word_t storage_quota);
+extern error_t activity_create (struct activity *parent,
+ struct activity *child,
+ l4_word_t priority, l4_word_t weight,
+ l4_word_t storage_quota);
+/* The ACTIVITY activity destroys the activity VICTIM. */
extern void activity_destroy (struct activity *activity,
- struct cap *cap, struct activity *target);
+ struct activity *victim);
#endif