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) | |
download | src-c7486758ebe08414423c719ec74a9bba2c35a3ef.tar.gz src-c7486758ebe08414423c719ec74a9bba2c35a3ef.zip |
Implement get_task_comm() in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0@gmail.com>
MFC after: 1 week
Sponsored by: Limelight Networks
Sponsored by: Mellanox Technologies
Notes
Notes:
svn path=/head/; revision=345099
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_ */ |