commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 20/25: libmachdev: make the two port buckets clearly distinct


From: Samuel Thibault
Subject: [hurd] 20/25: libmachdev: make the two port buckets clearly distinct
Date: Tue, 27 May 2014 08:32:04 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch dde
in repository hurd.

commit ce9516b1dc45fbcd7e03680f6b1173208d79cc82
Author: Justus Winter <address@hidden>
Date:   Sun Apr 13 12:33:18 2014 +0200

    libmachdev: make the two port buckets clearly distinct
    
    libmachdev uses two port buckets previously both named port_bucket.
    Rename the one containing device_t ports to device_bucket to clearly
    distinguish them.
    
    * libmachdev/ds_routines.c (port_bucket): Rename to device_bucket.
    * libmachdev/mig-decls.h: Likewise.
---
 libmachdev/ds_routines.c | 8 ++++----
 libmachdev/mig-decls.h   | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/libmachdev/ds_routines.c b/libmachdev/ds_routines.c
index 2f9388a..4541d54 100644
--- a/libmachdev/ds_routines.c
+++ b/libmachdev/ds_routines.c
@@ -70,7 +70,7 @@
 #include "queue.h"
 #include "mach_glue.h"
 
-struct port_bucket *port_bucket;
+struct port_bucket *device_bucket;
 struct port_class *dev_class;
 
 #define NUM_EMULATION num_emul
@@ -332,7 +332,7 @@ ds_device_map (struct mach_device *device, vm_prot_t prot, 
vm_offset_t offset,
 
 int create_device_port (int size, void *result)
 {
-  return ports_create_port (dev_class, port_bucket,
+  return ports_create_port (dev_class, device_bucket,
                            size, result);
 }
 
@@ -340,7 +340,7 @@ void mach_device_init()
 {
        int i;
 
-       port_bucket = ports_create_bucket ();
+       device_bucket = ports_create_bucket ();
        dev_class = ports_create_class (0, 0);
 
        for (i = 0; i < NUM_EMULATION; i++) {
@@ -377,7 +377,7 @@ void * ds_server(void *arg)
   /* Launch.  */
   do
     {
-      ports_manage_port_operations_one_thread (port_bucket, demuxer, 0);
+      ports_manage_port_operations_one_thread (device_bucket, demuxer, 0);
     } while (1);
 
   return NULL;
diff --git a/libmachdev/mig-decls.h b/libmachdev/mig-decls.h
index 1d137cd..b3dc43d 100644
--- a/libmachdev/mig-decls.h
+++ b/libmachdev/mig-decls.h
@@ -23,7 +23,7 @@
 #include <hurd/ports.h>
 #include "dev_hdr.h"
 
-extern struct port_bucket *port_bucket;
+extern struct port_bucket *device_bucket;
 extern struct port_class *dev_class;
 
 /* Called by server stub functions.  */
@@ -31,7 +31,7 @@ extern struct port_class *dev_class;
 static inline struct mach_device * __attribute__ ((unused))
 begin_using_device_port (mach_port_t port)
 {
-  return ports_lookup_port (port_bucket, port, dev_class);
+  return ports_lookup_port (device_bucket, port, dev_class);
 }
 
 static inline void __attribute__ ((unused))

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]