LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 03-01-2013, 04:16 AM   #16
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,939

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524

Off: I don't know this 'access_ok' function, but I guess it is '(void *)u_tmp->rx_buf' they could have used, as 'void *' is the generic pointer type in C. (If type-cast was required at all.)
 
Old 03-01-2013, 04:36 AM   #17
Julian Lewis
LQ Newbie
 
Registered: Apr 2012
Location: Geneva, Switzerland
Distribution: Scientific Linux / Red Hat - Ubuntu
Posts: 12

Original Poster
Rep: Reputation: Disabled
No (void *) will often cause problems when doing pointer arithmatic. access_ok is a kernel routiner used by anyone who write a driver to check that memory can be copied between kernel and user space.
 
Old 03-01-2013, 05:22 AM   #18
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,939

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
Off: Couldn't see any pointer-arithmetic in the quoted code, it was just a function call.
 
  


Reply


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
Adobe releases preview of flash 64 bit for all platforms jlo_sandog Linux - Software 1 09-17-2010 11:07 PM
Need sendmail to split single envelope into multiple To: addresses Dan_in_NH Linux - Server 1 08-04-2010 05:07 PM
LXer: Sigrity Supports 64-bit Linux Computing Platforms LXer Syndicated Linux News 0 01-15-2007 10:54 PM
pci 16-bit field addresses drminix Linux - Hardware 0 06-08-2005 01:54 AM
Why IP addresses are represented in 32-bit patterns? velan Debian 1 04-16-2004 03:06 AM


All times are GMT -5. The time now is 06:46 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration