lkml.org 
[lkml]   [2008]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectUserspace - Kernel Space "Connector" test
Hi All,

I want to use the Connector module (CONFIG_CONNECTOR) for Kernel
space to User space communication. My kernel version is 2.6.22.
Before using it, I am trying out the example programs in the
Documentation folder. I have cn_test.c built into the kernel (not
loaded as a module) and I have compiled ucon.c.

When I run ucon, the programs hangs at the point it polls the socket.

while (!need_exit) {

printf("Entered While\n");
pfd.events = POLLIN;
printf("1\n");
pfd.revents = 0;
printf("1.1\n");
-> switch (poll(&pfd, 1, -1)) {

The source code is the same as in the kernel/Documentation/Connector folder.

How do I get to know whether it is listening to the same socket as
cn_test is sending message on?

Thanks,
Midhun.


P.S.: I am not subscribed to the list. Please CC me.


\
 
 \ /
  Last update: 2008-03-26 11:13    [W:0.076 / U:4.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site