Solved

Pass a string of data from kernel space to user space

Posted on 2003-11-26
3
221 Views
Last Modified: 2010-04-22
Hi,
I need to get all the printk statement from kernel space to user space.Will copy_to_user function works for this..if so,how? please help me
0
Comment
Question by:netqueries
3 Comments
 
LVL 3

Accepted Solution

by:
scn earned 250 total points
ID: 9824900
From a user space program, you can open /proc/kmsg and loop on read from it: each time a kernel printk is issued, read() will get the message.
Another solution: man 2 syslog
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question