From: "Midhun A" <midhunagni@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Userspace - Kernel Space "Connector" test
Date: Wed, 26 Mar 2008 15:41:16 +0530 [thread overview]
Message-ID: <e1d5030b0803260311j25831caeyd9fc111a06e572e2@mail.gmail.com> (raw)
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.
next reply other threads:[~2008-03-26 10:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-26 10:11 Midhun A [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e1d5030b0803260311j25831caeyd9fc111a06e572e2@mail.gmail.com \
--to=midhunagni@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®