[<prev] [next>] [day] [month] [year] [list]
Message-ID: <54A83BDB1B497D429FE6D4D3A6E5C5C919150531@fzex.ruijie.com.cn>
Date: Fri, 17 Dec 2010 03:29:13 +0000
From: 林嘉(研七 福州) <linjia@...jie.com.cn>
To: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: a question about netlink?
in af_netlink.c
do_one_broadcast
{
if (nlk->pid == p->pid || p->group - 1 >= nlk->ngroups ||
!test_bit(p->group - 1, nlk->groups))
goto out;
}
why here write:" p->group - 1 >= nlk->ngroups" but not " p->group > nlk->ngroups " , or " (p->group & nlk->ngroups) != 0 "
I think the message is only sento nlk whoes groups 'p->group' bit is set.
Powered by blists - more mailing lists