diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2019-03-13 18:53:29 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2019-03-13 18:53:29 +0000 |
| commit | c7486758ebe08414423c719ec74a9bba2c35a3ef (patch) | |
| tree | 7b42a60036a86d4ffbffa30fd92e93b9ba4e4ff8 /sys | |
| parent | 638fa5a36fb6cd2f8fa74a9230e57507dcb713cd (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/compat/linuxkpi/common/include/linux/sched.h | 8 |
1 files changed, 8 insertions, 0 deletions
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_ */ |
