Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jun 2018 15:19:30 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334717 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201806061519.w56FJUmY061667@repo.freebsd.org>

Next in thread | Raw E-Mail | Index | Archive | Help
Author: hselasky
Date: Wed Jun  6 15:19:30 2018
New Revision: 334717
URL: https://svnweb.freebsd.org/changeset/base/334717

Log:
  Implement the __add_wait_queue_entry_tail() function in the LinuxKPI.
  
  Submitted by:	Johannes Lundberg <johalun0@gmail.com>
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies
  Sponsored by:	Limelight Networks

Modified:
  head/sys/compat/linuxkpi/common/include/linux/wait.h

Modified: head/sys/compat/linuxkpi/common/include/linux/wait.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/wait.h	Wed Jun  6 15:12:19 2018	(r334716)
+++ head/sys/compat/linuxkpi/common/include/linux/wait.h	Wed Jun  6 15:19:30 2018	(r334717)
@@ -54,7 +54,10 @@
 struct wait_queue;
 struct wait_queue_head;
 
+#define	wait_queue_entry wait_queue
+
 typedef struct wait_queue wait_queue_t;
+typedef struct wait_queue_entry wait_queue_entry_t;
 typedef struct wait_queue_head wait_queue_head_t;
 
 typedef int wait_queue_func_t(wait_queue_t *, unsigned int, int, void *);
@@ -246,6 +249,12 @@ static inline void
 __add_wait_queue_tail(wait_queue_head_t *wqh, wait_queue_t *wq)
 {
 	list_add_tail(&wq->task_list, &wqh->task_list);
+}
+
+static inline void
+__add_wait_queue_entry_tail(wait_queue_head_t *wqh, wait_queue_entry_t *wq)
+{
+        list_add_tail(&wq->entry, &wqh->head);
 }
 
 static inline void



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201806061519.w56FJUmY061667>