Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2019 14:06:16 -0000
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r345925 - stable/12/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201904051120.x35BKjAL002495@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Fri Apr  5 11:20:44 2019
New Revision: 345925
URL: https://svnweb.freebsd.org/changeset/base/345925

Log:
  MFC r345099:
  Implement get_task_comm() in the LinuxKPI.
  
  Submitted by:		Johannes Lundberg <johalun0@gmail.com>
  Sponsored by:		Limelight Networks
  Sponsored by:		Mellanox Technologies

Modified:
  stable/12/sys/compat/linuxkpi/common/include/linux/sched.h
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/compat/linuxkpi/common/include/linux/sched.h
==============================================================================
--- stable/12/sys/compat/linuxkpi/common/include/linux/sched.h	Fri Apr  5 11:19:23 2019	(r345924)
+++ stable/12/sys/compat/linuxkpi/common/include/linux/sched.h	Fri Apr  5 11:20:44 2019	(r345925)
@@ -183,4 +183,12 @@ local_clock(void)
 	return ((uint64_t)ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec);
 }
 
+static inline const char *
+get_task_comm(char *buf, struct task_struct *task)
+{
+
+	buf[0] = 0; /* buffer is too small */
+	return (task->comm);
+}
+
 #endif	/* _LINUX_SCHED_H_ */





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