LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-24-2007, 12:06 AM   #1
raklo
Member
 
Registered: Apr 2006
Posts: 143

Rep: Reputation: 15
how to access private pointer of struct net_device???


hi all,
i m using a linux-2.6.11.1 kernel.

1) i wanna know,which .c file does the kernel 2.6.11 use as default driver to its lancard ???

2)i have a pointer of type struct net_device,which points to eth0,which i have obtained thru api

Code:
struct net_device *get_dev_by_name("eth0")
now i want to access the * priv pointer elements of this struct net_device structure,

though i have the address of *priv, i dont know the type of struct that *priv would be pointing to as it is a void pointer.
now if i wnt to access the datastructures of this pointer how can i do it?????

ANY INPUT IS APPRECIATED
regards
 
Old 02-24-2007, 12:34 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Moved: This thread is more suitable in the programming forum and has been moved accordingly to help your thread/question get the exposure it deserves.

I've moved this to programming because I think its the best place to get answers for your questions.
 
  


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
Linux struct net_device mousars Programming 5 02-15-2006 12:41 AM
how to pass pointer of struct to function? jinxcat Programming 2 09-01-2005 09:29 AM
seg. fault when allocating memory via a pointer inside a struct elmafiacs Programming 4 02-20-2005 07:26 AM
struct pointer in C LuderForChrist Programming 2 01-07-2005 07:44 AM
using struct type X as pointer in struct X. worldmagic Programming 1 10-28-2003 02:06 PM

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

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