Re: cn_test example fail to send

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Again. I think I misunderstood the code and now I have ucon.c compiled.

But even with the original cn_test.c and ucon.c from kernel source. I
failed to run it and cn_netlink_send still report -ESRCH which means no
listener at all.

So any idea?

Ming

On Mon, 2006-11-06 at 20:39 -0500, Ming Zhang wrote:
> Hi All
> 
> I have a question about the cn_test coming under
> Documentation/connector. From the code, cn_test_callback() is registered
> and a timer handler will call cn_netlink_send() every second.
> 
> I compiled the code under FC5 and insmod the module. I also revised the
> code a bit to observe the return value of cn_netlink_send().
> 
> Unfortunately, the return value is always -ESRCH which
> http://lxr.linux.no/source/drivers/connector/connector.c?v=2.6.18#L102
> show no listeners.
> 
> But I thought cn_test_callback() is the listener?
> 
> Ming
> 
> 


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux