Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2018 10:54:25 +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: r334281 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201805281054.w4SAsPjD027538@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Mon May 28 10:54:24 2018
New Revision: 334281
URL: https://svnweb.freebsd.org/changeset/base/334281

Log:
  Implement wait_event_killable() in the LinuxKPI.
  
  Requested by:	Johannes Lundberg <johalun0@gmail.com>
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies

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	Mon May 28 10:51:39 2018	(r334280)
+++ head/sys/compat/linuxkpi/common/include/linux/wait.h	Mon May 28 10:54:24 2018	(r334281)
@@ -170,6 +170,11 @@ int linux_wait_event_common(wait_queue_head_t *, wait_
 	    NULL);							\
 })
 
+#define	wait_event_killable(wqh, cond) ({				\
+	__wait_event_common(wqh, cond, MAX_SCHEDULE_TIMEOUT,		\
+	    TASK_INTERRUPTIBLE, NULL);					\
+})
+
 #define	wait_event_interruptible(wqh, cond) ({				\
 	__wait_event_common(wqh, cond, MAX_SCHEDULE_TIMEOUT,		\
 	    TASK_INTERRUPTIBLE, NULL);					\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805281054.w4SAsPjD027538>