LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-22-2010, 10:13 AM   #1
pupillo
LQ Newbie
 
Registered: Jul 2009
Posts: 22

Rep: Reputation: 15
Question syscall accessing user space


Hi, I have a simple driver.
If the calling process passes me the virtual address of an its array for example, how can I access it without using copy_from_user?

Thanks
Pupillo
 
Old 02-24-2010, 08:10 AM   #2
cladisch
Member
 
Registered: Oct 2008
Location: Earth
Distribution: Slackware
Posts: 228

Rep: Reputation: 54
You could use get_user() which does the same for individual values.

Why don't you want to use copy_from_user()?
 
Old 02-25-2010, 01:17 AM   #3
pupillo
LQ Newbie
 
Registered: Jul 2009
Posts: 22

Original Poster
Rep: Reputation: 15
Hi,
my first purpose was to understand the translation between kernel and user. As second reason there could be a performance issue.
However,I've had a look at the implementation of get_user and I saw that it just use the user virtual address...
Thanks
 
  


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
Division of Logical Memory Space in to User Space and Kernel Space shreshtha Linux - Newbie 2 01-14-2010 09:59 AM
how to call socket prog code written in user space from kernel space???HELP kurt2 Programming 2 07-15-2009 09:56 PM
Accessing User Space Buffer directly in Kernel code akshaynm87 Linux - Kernel 2 06-29-2009 09:39 AM
Accessing a kernel buffer from user space jan_capri Linux - Kernel 2 05-21-2007 11:44 PM
accessing data structure of eth0 from user space???? raklo Linux - Kernel 10 02-09-2007 04:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:12 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