Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261462AbVCWNbw (ORCPT ); Wed, 23 Mar 2005 08:31:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261594AbVCWNbv (ORCPT ); Wed, 23 Mar 2005 08:31:51 -0500 Received: from alog0307.analogic.com ([208.224.222.83]:52173 "EHLO chaos.analogic.com") by vger.kernel.org with ESMTP id S261466AbVCWNbd (ORCPT ); Wed, 23 Mar 2005 08:31:33 -0500 Date: Wed, 23 Mar 2005 08:28:59 -0500 (EST) From: linux-os Reply-To: linux-os@analogic.com To: linux lover cc: linux-kernel@vger.kernel.org Subject: Re: Accessing data structure from kernel space In-Reply-To: <20050323132036.99757.qmail@web52202.mail.yahoo.com> Message-ID: References: <20050323132036.99757.qmail@web52202.mail.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1242 Lines: 33 On Wed, 23 Mar 2005, linux lover wrote: > Hello all, > I have one linked list data structure added to > a file in kernel source code which has some kernel > info. I want to acess that linked list structure from > user space. Is that possible?? > Also how to add own system call usable at user > level from kernel module?? > regards, > linux_lover. > Many people will tell you to use the /proc file-system. I suggest you make a simple "character" driver and access your kernel structure using ioctl() or mmap(). You don't add your own system call __ever__, even if you are a long-time kernel developer. The current API already has lots of standard interface capabilities. Thinking, even for an instant, that you need more means that you don't understand Unix/Linux. Cheers, Dick Johnson Penguin : Linux version 2.6.11 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bush. 98.36% of all statistics are fiction. - 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/