From a17de848416ff3328a86fc6f9999db7f03707bfb Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 27 Jun 1995 15:04:29 +0000 Subject: (trivfs_handle_port): Take new parms; use new ports interface; initialize CNTL->protid_bucket. --- libtrivfs/handle-port.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'libtrivfs/handle-port.c') diff --git a/libtrivfs/handle-port.c b/libtrivfs/handle-port.c index 5b64e968..6f51ccb9 100644 --- a/libtrivfs/handle-port.c +++ b/libtrivfs/handle-port.c @@ -19,14 +19,18 @@ mach_port_t trivfs_handle_port (mach_port_t realnode, - int cntltype, - int protidtype) + struct port_class *control_class, + struct port_bucket *control_bucket, + struct port_class *protid_class, + struct port_bucket *protid_bucket) { struct trivfs_control *cntl; - cntl = ports_allocate_port (sizeof (struct trivfs_control), cntltype); + cntl = ports_allocate_port (control_bucket, + sizeof (struct trivfs_control), control_class); cntl->underlying = realnode; - cntl->protidtypes = protidtype; + cntl->protid_class = protid_class; + cntl->protid_bucket = protid_bucket; mutex_init (&cntl->lock); return ports_get_right (cntl); } -- cgit v1.2.3