From: Krishna Kumar <krkumar@us.ibm.com>
To: yoshfuji@linux-ipv6.org
Cc: davem@redhat.com, kuznet@ms2.inr.ac.ru, netdev@oss.sgi.com
Subject: Re: Question about netlink
Date: Tue, 08 Jul 2003 13:27:54 -0700 [thread overview]
Message-ID: <3F0B294A.9060302@us.ibm.com> (raw)
In-Reply-To: <20030709.040433.89038276.yoshfuji@linux-ipv6.org>
I am still not convinced how it works, though I have been trying to seek the truth for some
time now :-).
These routines 'get' the value of args[0] and then 'set' it to the resultant value. How is
this value set in the first place to the user provided value ? It seems to be initialized
to ZERO in netlink_dump_start(). The only way it seems to use the value is if it gets
called twice from netlink_dump(), the first time cb->args will be set to zero's while the
second time it will have the values set by the first invocation to the same routine. Am I
missing something or is 'args' not intended for user specified arguments ? If so, how
should we access the arguments passed by the user ?
Thanks,
- KK
YOSHIFUJI Hideaki wrote:
> In article <3F0B10E3.9050700@us.ibm.com> (at Tue, 08 Jul 2003 11:43:47 -0700), Krishna Kumar <krkumar@us.ibm.com> says:
>
>
>>Some of the netlink routines (eg rtnetlink_dump_ifinfo or inet6_dump_ifaddr) seem to get
>>user arguments from cb->args['n']. However I was not able to figure out where the
>>arguments are being set, can anyone help ?
>
>
> Take a look at net/core/rtnelink.c:rtnetlink_dump_ifinfo()
> net/core/neighbour.c:neigh_dump_{info,table}()
> and seek the truth. :-)
>
> --yoshfuji
>
next prev parent reply other threads:[~2003-07-08 20:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-08 18:43 Question about netlink Krishna Kumar
2003-07-08 19:04 ` YOSHIFUJI Hideaki / 吉藤英明
2003-07-08 20:27 ` Krishna Kumar [this message]
2003-07-08 23:50 ` kuznet
-- strict thread matches above, loose matches on Subject: below --
2007-06-09 19:08 [PATCH 6/7] scsi-hw-handler: rm dm-hw-handler code michaelc
2007-06-11 15:09 ` Question about NetLink Wood, Brian J
2007-06-12 19:37 ` Mike Anderson
2007-09-11 15:48 ` Wood, Brian J
2007-09-11 16:45 ` Hall, Eric R
2007-09-11 18:16 ` Mike Anderson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F0B294A.9060302@us.ibm.com \
--to=krkumar@us.ibm.com \
--cc=davem@redhat.com \
--cc=kuznet@ms2.inr.ac.ru \
--cc=netdev@oss.sgi.com \
--cc=yoshfuji@linux-ipv6.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.