[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 23/25: libmachdev: add, fix and use declaration for create_device
From: |
Samuel Thibault |
Subject: |
[hurd] 23/25: libmachdev: add, fix and use declaration for create_device_port |
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 dc7e40fa2b4abb76ae2a2c4fdf100e0a5f005aea
Author: Justus Winter <address@hidden>
Date: Sun Apr 13 12:48:12 2014 +0200
libmachdev: add, fix and use declaration for create_device_port
* libmachdev/ds_routines.c (create_device_port): Fix the type of the
size parameter. Make it return error_t.
* libmachdev/ds_routines.h (create_device_port): Add declaration.
* libmachdev/net.c: Include ds_routines.h.
* libmachdev/block.c: Include ds_routines.h.
---
libmachdev/block.c | 1 +
libmachdev/ds_routines.c | 3 ++-
libmachdev/ds_routines.h | 2 ++
libmachdev/net.c | 1 +
4 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/libmachdev/block.c b/libmachdev/block.c
index 756a07b..cd868d2 100644
--- a/libmachdev/block.c
+++ b/libmachdev/block.c
@@ -35,6 +35,7 @@
#include <ddekit/printf.h>
+#include "ds_routines.h"
#include "vm_param.h"
#include "device_reply_U.h"
#include "dev_hdr.h"
diff --git a/libmachdev/ds_routines.c b/libmachdev/ds_routines.c
index 1da1393..6bd5a12 100644
--- a/libmachdev/ds_routines.c
+++ b/libmachdev/ds_routines.c
@@ -331,7 +331,8 @@ ds_device_map (struct mach_device *device, vm_prot_t prot,
vm_offset_t offset,
return D_INVALID_OPERATION;
}
-int create_device_port (int size, void *result)
+error_t
+create_device_port (size_t size, void *result)
{
return ports_create_port (dev_class, device_bucket,
size, result);
diff --git a/libmachdev/ds_routines.h b/libmachdev/ds_routines.h
index e314e80..3706aa5 100644
--- a/libmachdev/ds_routines.h
+++ b/libmachdev/ds_routines.h
@@ -52,4 +52,6 @@ boolean_t ds_write_done(io_req_t);
void iowait (io_req_t ior);
+error_t create_device_port (size_t size, void *result);
+
#endif /* DS_ROUTINES_H */
diff --git a/libmachdev/net.c b/libmachdev/net.c
index 6037e2f..07bb74a 100644
--- a/libmachdev/net.c
+++ b/libmachdev/net.c
@@ -70,6 +70,7 @@
#define MACH_INCLUDE
+#include "ds_routines.h"
#include "vm_param.h"
#include "device_reply_U.h"
#include "dev_hdr.h"
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 12/25: eth-filter: fix argp_program_version, remove argp_program_bug_address, (continued)
- [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, 2014/05/27
- [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 <=
- [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
- [hurd] 15/25: libmachdev: improve the demuxer functions, Samuel Thibault, 2014/05/27
- [hurd] 16/25: eth-filter: improve the demuxer function, Samuel Thibault, 2014/05/27
- [hurd] 10/25: devnode: remove the ourdevice hack, Samuel Thibault, 2014/05/27
- [hurd] 04/25: eth-filter: fix receiver lookups, Samuel Thibault, 2014/05/27
- [hurd] 01/25: libports: fix notify_port_t receiver lookups, Samuel Thibault, 2014/05/27