Re: Connector - how to start?

Evgeniy Polyakov
2006-04-19T12:14:44Z

On Wed, Apr 19, 2006 at 01:39:08PM +0200, Libor Vanek (libor.vanek@gmail.com) wrote:
> Ok, thanks. And is there some way how to sign to simply some group
> number? (not through this bit mask but directly through group number -
> yes, I know I can "convert" the number)

bind() to zero and then subscribe can work.

> And what about my other issue I had in my simple example
> module/userspace SW - that cn_netlink_send returned 0 even when there
> was no listener - have you found something wrong in connector or (more
> probable) in my example?

With the latest 2.6 git tree I get following:

w1_netlink_send: cn_netlink_send() returned -3.

when there are no users.

Can you check if there is
return netlink_broadcast(); string in the cn_netlink_send() in your
tree?

> Thanks,
> Libor Vanek
>
> On 4/18/06, Evgeniy Polyakov <johnpol@2ka.mipt.ru> wrote:
> > bind() nladdr value is a bitmask of groups, not a single group number,
> > it was done for backward compatibility, so bind(5) is equal to
> > subscribe(1) and subscribe(3). That is why you saw messages without
> > subscription.
> >
> > --
> > Evgeniy Polyakov
> >