From c7486758ebe08414423c719ec74a9bba2c35a3ef Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Wed, 13 Mar 2019 18:53:29 +0000 Subject: Implement get_task_comm() in the LinuxKPI. Submitted by: Johannes Lundberg MFC after: 1 week Sponsored by: Limelight Networks Sponsored by: Mellanox Technologies --- sys/compat/linuxkpi/common/include/linux/sched.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sys') diff --git a/sys/compat/linuxkpi/common/include/linux/sched.h b/sys/compat/linuxkpi/common/include/linux/sched.h index 2805dd3b3484..f95787212488 100644 --- a/sys/compat/linuxkpi/common/include/linux/sched.h +++ b/sys/compat/linuxkpi/common/include/linux/sched.h @@ -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_ */ -- cgit v1.2.3