Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example/ringbuffer: fix comm len #1531

Merged
merged 1 commit into from
Aug 5, 2024
Merged

example/ringbuffer: fix comm len #1531

merged 1 commit into from
Aug 5, 2024

Conversation

florianl
Copy link
Contributor

@florianl florianl commented Aug 2, 2024

The Linux kernel uses TASK_COMM_LEN to limit the length of the comm string. By default TASK_COMM_LEN is set to 16. For simplicity set TASK_COMM_LEN to 16 if it is not defined. As an alternative one could also include linux/sched.h.

@florianl florianl requested a review from a team as a code owner August 2, 2024 10:13
The Linux kernel uses TASK_COMM_LEN to limit the length of the comm string.
By default TASK_COMM_LEN is set to 16. For simplicity set TASK_COMM_LEN to
16 if it is not defined. As an alternative one could also include
linux/sched.h.

Signed-off-by: Florian Lehner <dev@der-flo.net>
@florianl florianl force-pushed the fix-example-task-comm-len branch from 16da36e to abbc0d7 Compare August 2, 2024 10:22
@lmb lmb merged commit ccdd12c into main Aug 5, 2024
17 checks passed
@lmb lmb deleted the fix-example-task-comm-len branch August 5, 2024 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants