* [ath9k-devel] dev_base list head in the linux kernel code
@ 2011-06-23 2:12 Maya it
2011-06-23 15:44 ` Pavel Roskin
0 siblings, 1 reply; 2+ messages in thread
From: Maya it @ 2011-06-23 2:12 UTC (permalink / raw)
To: ath9k-devel
Hi all,
I have two wireless cards (wlan0 and wlan1) and want to access them
separately. I plan to keep both in adhoc mode and communicate with wlan0 and
wlan1 respectively at the other end of this communication. But since I am
working at the kernel level, and I want to access these devices from the
dev_base list. As far as I know, dev_base saves the net_devices which are
initialized at boot up time. So I want to open the device and change its
configuration after the kernel has loaded.
Please guide and let me know if I am wrong in understanding the basics of
the dev_base list.
Thanks in advance!
Maya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20110622/6d2ab44c/attachment.htm
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ath9k-devel] dev_base list head in the linux kernel code
2011-06-23 2:12 [ath9k-devel] dev_base list head in the linux kernel code Maya it
@ 2011-06-23 15:44 ` Pavel Roskin
0 siblings, 0 replies; 2+ messages in thread
From: Pavel Roskin @ 2011-06-23 15:44 UTC (permalink / raw)
To: Maya it; +Cc: linux-wireless
On 06/22/2011 10:12 PM, Maya it wrote:
> Hi all,
>
> I have two wireless cards (wlan0 and wlan1) and want to access them
> separately. I plan to keep both in adhoc mode and communicate with wlan0 and
> wlan1 respectively at the other end of this communication. But since I am
> working at the kernel level, and I want to access these devices from the
> dev_base list. As far as I know, dev_base saves the net_devices which are
> initialized at boot up time. So I want to open the device and change its
> configuration after the kernel has loaded.
>
> Please guide and let me know if I am wrong in understanding the basics of
> the dev_base list.
Please don't cross-post. Cross-posting should be reserved for really
important topics, such as announcements by lead developers. I'm
trimming the cc list. Actually, your question would be suitable for the
netdev list, as there it nothing specific in your question about
wireless devices, let alone ath9k. Or better yet, maybe you could find
some forum or list for the newbies in kernel programming?
I suggest that you check the latest kernel source for examples before
asking questions. You can easily find that access to dev_base is
encapsulated by macros defined in netdevice.h, such as for_each_netdev.
Now you can look for examples of for_each_netdev in the code and see if
they do what you need.
--
Regards,
Pavel Roskin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-23 15:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-23 2:12 [ath9k-devel] dev_base list head in the linux kernel code Maya it
2011-06-23 15:44 ` Pavel Roskin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.