Author: hselasky Date: Fri Apr 5 11:21:00 2019 New Revision: 345926 URL: https://svnweb.freebsd.org/changeset/base/345926
Log: MFC r345099: Implement get_task_comm() in the LinuxKPI. Submitted by: Johannes Lundberg <[email protected]> Sponsored by: Limelight Networks Sponsored by: Mellanox Technologies Modified: stable/11/sys/compat/linuxkpi/common/include/linux/sched.h Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/compat/linuxkpi/common/include/linux/sched.h ============================================================================== --- stable/11/sys/compat/linuxkpi/common/include/linux/sched.h Fri Apr 5 11:20:44 2019 (r345925) +++ stable/11/sys/compat/linuxkpi/common/include/linux/sched.h Fri Apr 5 11:21:00 2019 (r345926) @@ -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_ */ _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "[email protected]"
