Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-05-2008, 08:03 AM   #1
LQ Newbie
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
copy_from_user() function fails inside a kernel thread.

I am working on PowerPC based target board using linux-
I have designed a device driver that calls the function copy_from_user() inside IOCTL , READ & WRITE functions of the driver.
I dont have any problem in this.

My problem :-
If I use the same function inside of a kernel thread started by the driver, then the copy_from_user() always fails.
Old 02-18-2012, 04:58 PM   #2
LQ Newbie
Registered: Dec 2008
Location: Beverly Hills, CA 90210
Distribution: Centos
Posts: 4

Rep: Reputation: 0
Wink copy_from_user

Has anyone figured out this problem yet? Have you tried using memmove or memcpy?

I have similar problem with my kernel module.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
not calling function inside switch case??? sarathius Programming 2 01-29-2008 10:38 AM
function calls inside a function manas_sem Programming 2 02-28-2007 01:27 AM
function defn inside a function in C...!!! arunka Programming 1 02-05-2006 01:08 AM
accessing variables inside a function bahadur Programming 1 03-27-2005 04:41 AM
menuconfig fails to function properly in kernel 2.6.4 csvke Linux - Software 7 03-23-2004 07:20 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration