LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-05-2008, 08:03 AM   #1
rajneesh.gaur
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-2.6.24.2-DENX.
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
nematoad
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.

Bif
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:42 PM.

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