Solved

Pass a string of data from kernel space to user space

Posted on 2003-11-26
3
220 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!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help Linux centos 5.7 3 90
CentOS 6.6 Port opening question 1 137
Cloning a part of HDD MIPS Linux 16 112
Subsystem for UNIX-based Applications (SUA) 2 84
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…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

770 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