Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755572AbYCZKL1 (ORCPT ); Wed, 26 Mar 2008 06:11:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751586AbYCZKLT (ORCPT ); Wed, 26 Mar 2008 06:11:19 -0400 Received: from qb-out-0506.google.com ([72.14.204.238]:42161 "EHLO qb-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753449AbYCZKLS (ORCPT ); Wed, 26 Mar 2008 06:11:18 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=pkabZ7a1jZ6IVpfqgXfoadYqvpZIWdoXAUEFT4mI/8byHZ7QJngY7M9WhNe9gKwb9k33JShdRVtHpli3SAhzyW6TzOO/3qZK8aJE2QNK9ZspwG4Gm/HZr4iFe5ZXIQdlxNGfmdSzxB3lq6PfDPxlDcc42cdOJGTmR0KISIn2cHg= Message-ID: Date: Wed, 26 Mar 2008 15:41:16 +0530 From: "Midhun A" To: linux-kernel@vger.kernel.org Subject: Userspace - Kernel Space "Connector" test MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1054 Lines: 34 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/