LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 03-01-2013, 03:16 AM   #16
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,455

Rep: Reputation: 445Reputation: 445Reputation: 445Reputation: 445Reputation: 445

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, 03: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, 04:22 AM   #18
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,455

Rep: Reputation: 445Reputation: 445Reputation: 445Reputation: 445Reputation: 445
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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 10:07 PM
Need sendmail to split single envelope into multiple To: addresses Dan_in_NH Linux - Server 1 08-04-2010 04:07 PM
LXer: Sigrity Supports 64-bit Linux Computing Platforms LXer Syndicated Linux News 0 01-15-2007 09:54 PM
pci 16-bit field addresses drminix Linux - Hardware 0 06-08-2005 12:54 AM
Why IP addresses are represented in 32-bit patterns? velan Debian 1 04-16-2004 02:06 AM


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

Main Menu
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