mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Userspace - Kernel Space "Connector" test
@ 2008-03-26 10:11 Midhun A
  2008-03-27 14:38 ` Evgeniy Polyakov
  0 siblings, 1 reply; 7+ messages in thread
From: Midhun A @ 2008-03-26 10:11 UTC (permalink / raw)
  To: linux-kernel

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-04-23  8:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-26 10:11 Userspace - Kernel Space "Connector" test Midhun A
2008-03-27 14:38 ` Evgeniy Polyakov
2008-04-04  7:01   ` Midhun A
2008-04-21 10:29     ` Midhun A
2008-04-21 10:43       ` Evgeniy Polyakov
2008-04-23  8:19         ` Midhun A
2008-04-23  8:33           ` Evgeniy Polyakov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®