Re: Getting address of a symbol from kernel's symbol table.

2012-12-03 Thread Arif Hossain
On 12/02/2012 09:49 PM, Mulyadi Santosa wrote: > Hi... > > On Sun, Dec 2, 2012 at 5:43 PM, arif wrote: >> To be able to do that i need the address of the function. >> >> I've seen that from user space i can read /proc/kallsyms to get an >> address of a symbol

Re: Debug symbols in kernel modules

2012-12-02 Thread arif
On 10/07/2012 06:46 AM, Mulyadi Santosa wrote: > On Sat, Oct 6, 2012 at 6:31 PM, Aft nix wrote: >> Hi, >> >> When i write a makefile to build a kernel module how should i make >> sure that it contains debugging symbols? > > IIRC, it's in kernel hacking section during make config/menuconfig/xconfig

Getting address of a symbol from kernel's symbol table.

2012-12-02 Thread arif
arif@khost:~/src/linux$ global -x ip_rcv_finish ip_rcv_finish 319 net/ipv4/ip_input.c static int ip_rcv_finish(struct sk_buff *skb) Now if i want to use this function i need to initialize a pointer to this function. To be able to do that i need the address of the function. I've seen

Re: linux kernel support for intel advandce-6205 wireless

2012-11-15 Thread arif
On 11/15/2012 1:06 PM, Liu, Shuang wrote: > Anyone knows that does linux kernel support intel advanced-N 6205 wireless > card. > > In my Ubuntu, 10.04 and also 10.10, it cannot support 6205, so I cannot > browser web page through wifi. > > Many thanks! > BR > Shuang Can you post your lspci out

using arc4 algorithm of linux kernel crypto subsystem

2012-07-24 Thread Arif Hossain
Hi, I'm trying to use the "arc4" algorithm to to encrypt a arbitrary data stream from a module. But i'm a little clueless about how should i approach it.the implementation is in $find . -type f -name '*.[ch]' -exec grep 'EXPORT_SYMBOL' {} \; | grep 'rc4' returned nothing. So i guess there is no

Re: Hash table implementation

2012-07-23 Thread Arif
On Jul 24, 2012, at 1:13 AM, Mulyadi Santosa wrote: > Hi :) > > On Mon, Jul 23, 2012 at 5:07 PM, Arif Hossain > wrote: >> It describes how i can use this even in user land code. If i could do >> this for jhash then the understanding would have been better. > &

Re: Hash table implementation

2012-07-23 Thread Arif
On Jul 23, 2012, at 11:31 PM, Hans Schillstrom wrote: >> Subject: Hash table implementation >> >> Hi, >> >> This commit shows that jenkins hash >> function(http://en.wikipedia.org/wiki/Jenkins_hash_function) is >> implemented in kernel : >> >> commit 60d509c823cca21e77d537bd356785f7cfe8f0d1 >> Au

Hash table implementation

2012-07-23 Thread Arif Hossain
Hi, This commit shows that jenkins hash function(http://en.wikipedia.org/wiki/Jenkins_hash_function) is implemented in kernel : commit 60d509c823cca21e77d537bd356785f7cfe8f0d1 Author: Jozsef Kadlecsik Date: Fri Dec 3 02:39:01 2010 + The new jhash implementation I could not find any

Re: ipv6 address comparison

2012-07-21 Thread Arif Hossain
On Sat, 2012-07-21 at 15:36 +0200, Sven-Haegar Koch wrote: > On Sat, 21 Jul 2012, Arif Hossain wrote: > > > My module uses ipv6_addr_cmp() from . > > > > > > static inline int ipv6_addr_cmp(const struct in6_addr *a1, const struct > > in6_addr *a2) > &

ipv6 address comparison

2012-07-21 Thread Arif Hossain
Hi, My module uses ipv6_addr_cmp() from . static inline int ipv6_addr_cmp(const struct in6_addr *a1, const struct in6_addr *a2) { return memcmp(a1, a2, sizeof(struct in6_addr)); } I've included . But when i try to build the module i get following error: net/netfilter/xt_ipaddr.c:81: e

Re: good explanation of __read_mostly, __init, __exit macros,

2012-07-17 Thread Arif Hossain
On Tue, 2012-07-17 at 02:03 +0700, Mulyadi Santosa wrote: > Hi :) > > On Tue, Jul 17, 2012 at 1:49 AM, Aft nix wrote: > > This special section, "data..read_mostly" , is it maintained by > > kernel? > > by maintained, you mean allocated? then yes > > > then Linker has to know this informatio