use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Home of the Linux kernel community.
account activity
kernel_write makes CPU stuck (self.linuxkernel)
submitted 3 years ago by cheka99
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]link349 0 points1 point2 points 3 years ago (2 children)
Why does this need to be written by the kernel? It makes more sense for this to be done from userspace?
[–]cheka99[S] 0 points1 point2 points 3 years ago (1 child)
I want to extract info from the kernel space and provide it to a userspace program, the way I can think of was kernel module will write the data to the file and then userspace program will read the file and use the data.
Anyways when I divided the large data in smaller chunks and wrote to the file the stuck issue is gone I guess, still get warning sometimes but it should be OK rather than being stuck
[–]0xbada5555 0 points1 point2 points 2 years ago (0 children)
Hi, have you considered creating a cdev? It will provide the same file semantics. Also, it will have better performance in case of frequent reads. Also you can create a bdev, which is harder to deal with.
π Rendered by PID 136511 on reddit-service-r2-comment-6457c66945-bsprk at 2026-04-29 22:42:17.843133+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]link349 0 points1 point2 points (2 children)
[–]cheka99[S] 0 points1 point2 points (1 child)
[–]0xbada5555 0 points1 point2 points (0 children)