[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
- [hurd] branch dde updated (deb7a47 -> 0d80a60), Samuel Thibault, 2014/05/27
- [hurd] 02/25: eth-filter: remove invalid port deallocation, Samuel Thibault, 2014/05/27
- [hurd] 09/25: libmachdev: fix function declaration, Samuel Thibault, 2014/05/27
- [hurd] 07/25: libmachdev: remove unused function, Samuel Thibault, 2014/05/27
- [hurd] 06/25: libmachdev: avoid doing pointer arithmetic to get the port_info, Samuel Thibault, 2014/05/27
- [hurd] 11/25: devnode: fix argp_program_version, remove argp_program_bug_address, Samuel Thibault, 2014/05/27
- [hurd] 18/25: libmachdev: fix device_open, Samuel Thibault, 2014/05/27
- [hurd] 12/25: eth-filter: fix argp_program_version, remove argp_program_bug_address, Samuel Thibault, 2014/05/27
- [hurd] 17/25: eth-multiplexer: improve the demuxer function, Samuel Thibault, 2014/05/27
- [hurd] 19/25: libmachdev: remove mach_device_deallocate, Samuel Thibault, 2014/05/27
- [hurd] 20/25: libmachdev: make the two port buckets clearly distinct,
Samuel Thibault <=
- [hurd] 21/25: libmachdev: drop unused declarations, Samuel Thibault, 2014/05/27
- [hurd] 14/25: devnode: improve the demuxer function, Samuel Thibault, 2014/05/27
- [hurd] 24/25: Merge remote-tracking branch 'incubator/dde' into dde-upstream, Samuel Thibault, 2014/05/27
- [hurd] 03/25: Drop DIST_FILES from Makefile, Samuel Thibault, 2014/05/27
- [hurd] 22/25: libmachdev: add missing includes, Samuel Thibault, 2014/05/27
- [hurd] 25/25: Merge branch 'dde-upstream' into dde, Samuel Thibault, 2014/05/27
- [hurd] 23/25: libmachdev: add, fix and use declaration for create_device_port, Samuel Thibault, 2014/05/27
- [hurd] 08/25: libmachdev: fix receiver lookups, Samuel Thibault, 2014/05/27
- [hurd] 05/25: eth-multiplexer: fix receiver lookups, Samuel Thibault, 2014/05/27
- [hurd] 13/25: eth-multiplexer: fix argp_program_version, remove argp_program_bug_address, Samuel Thibault, 2014/05/27