summaryrefslogtreecommitdiff
path: root/sys/net/netmap_user.h
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2016-10-18 15:41:57 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2016-10-18 15:41:57 +0000
commit6ad42d71b2c2d6afb14e8328d8bb1ba5b00919f8 (patch)
tree40d5236306217975147879f4f9cf7fbd2cb702c8 /sys/net/netmap_user.h
parentfbb9e715c022b92ee8aff08cc77077cfa3bc23fe (diff)
downloadsrc-test2-6ad42d71b2c2d6afb14e8328d8bb1ba5b00919f8.tar.gz
src-test2-6ad42d71b2c2d6afb14e8328d8bb1ba5b00919f8.zip
Notes
Diffstat (limited to 'sys/net/netmap_user.h')
-rw-r--r--sys/net/netmap_user.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/net/netmap_user.h b/sys/net/netmap_user.h
index 4ec3d941c504..4fbf38731d33 100644
--- a/sys/net/netmap_user.h
+++ b/sys/net/netmap_user.h
@@ -391,8 +391,8 @@ struct win_netmap_fd_list {
HANDLE win_netmap_handle;
};
-/*
- * list head containing all the netmap opened fd and their
+/*
+ * list head containing all the netmap opened fd and their
* windows HANDLE counterparts
*/
static struct win_netmap_fd_list *win_netmap_fd_list_head;
@@ -453,7 +453,7 @@ win_get_netmap_handle(int fd)
/*
* use this function only from netmap_user.h internal functions
- * same as ioctl, returns 0 on success and -1 on error
+ * same as ioctl, returns 0 on success and -1 on error
*/
static int
win_nm_ioctl_internal(HANDLE h, int32_t ctlCode, void *arg)
@@ -499,9 +499,9 @@ win_nm_ioctl_internal(HANDLE h, int32_t ctlCode, void *arg)
return ioctlReturnStatus ? 0 : -1;
}
-/*
+/*
* this function is what must be called from user-space programs
- * same as ioctl, returns 0 on success and -1 on error
+ * same as ioctl, returns 0 on success and -1 on error
*/
static int
win_nm_ioctl(int fd, int32_t ctlCode, void *arg)
@@ -541,7 +541,7 @@ win32_mmap_emulated(void *addr, size_t length, int prot, int flags, int fd, int3
#include <sys/poll.h> /* XXX needed to use the structure pollfd */
-static int
+static int
win_nm_poll(struct pollfd *fds, int nfds, int timeout)
{
HANDLE h;
@@ -564,7 +564,7 @@ win_nm_poll(struct pollfd *fds, int nfds, int timeout)
#define poll win_nm_poll
-static int
+static int
win_nm_open(char* pathname, int flags)
{
@@ -583,7 +583,7 @@ win_nm_open(char* pathname, int flags)
#define open win_nm_open
-static int
+static int
win_nm_close(int fd)
{
if (fd != -1) {
@@ -919,7 +919,7 @@ nm_close(struct nm_desc *d)
if (d->fd != -1) {
close(d->fd);
}
-
+
bzero(d, sizeof(*d));
free(d);
return 0;