Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262310AbVAJQPa (ORCPT ); Mon, 10 Jan 2005 11:15:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262311AbVAJQPa (ORCPT ); Mon, 10 Jan 2005 11:15:30 -0500 Received: from [143.247.20.203] ([143.247.20.203]:12975 "EHLO cgx-mail.capitalgenomix.com") by vger.kernel.org with ESMTP id S262310AbVAJQPX (ORCPT ); Mon, 10 Jan 2005 11:15:23 -0500 Message-ID: <41E2AA19.70603@capitalgenomix.com> Date: Mon, 10 Jan 2005 11:15:21 -0500 From: "Fao, Sean" User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: linux lover Cc: linux-kernel@vger.kernel.org Subject: Re: How to read file in kernel module? References: <20050110133046.61383.qmail@web52210.mail.yahoo.com> In-Reply-To: <20050110133046.61383.qmail@web52210.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1706 Lines: 42 linux lover wrote: > I want to read file in kernel module. can >anybody help me by giving code for that? >Also whats suitable way to do that in kernel /proc or >shared memory? what i want is to read and write a user >file frequently. >regards, > Linux Lover, After reading a number of posts from you in the past couple of months, it's become rather obvious that you're taking a brute force approach to Linux kernel development rather than starting from the beginning and working your way up. Furthermore, some of the questions you ask indicate that you're approaching kernel programming the same way you would program in user space. Others (myself included) have suggested a couple of books to get you started quickly. It will take some work on your part, however, if you ever want to be a proficient kernel developer. Examples are good to back up theory, but are a horrible way to learn any kind of programming. Please take us up on our advise to do some reading. I can promiss you that the energy you spend on reading will be time well spent if Linux kernel programming is for you. If you have questions about portions you read in the book, somebody here might be willing to give you a hand. Please do not take this as an insult. You sound like you have a lot of interest in Kernel development. If that's the case, I'd like to see you turn into a good developer, not just another "so-so" programmer. Good luck, -- Sean - 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/