From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-embedded+bounces-1148-garchives=archives.gentoo.org@gentoo.org>)
	id 1GFXah-0003Qt-6P
	for garchives@archives.gentoo.org; Tue, 22 Aug 2006 14:50:55 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k7MEmluv004430;
	Tue, 22 Aug 2006 14:48:47 GMT
Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188])
	by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k7MEmlgt010284
	for <gentoo-embedded@lists.gentoo.org>; Tue, 22 Aug 2006 14:48:47 GMT
Received: by nf-out-0910.google.com with SMTP id n15so79224nfc
        for <gentoo-embedded@lists.gentoo.org>; Tue, 22 Aug 2006 07:48:47 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=VU59YxEm0hc674ew1ngEyLxYaNxbvmFGoyNfCevRsHSIRJ1QcdbL07+s6HfF6U5BvNFsJzTwMUEoMdAqnrMcAHCdk7FQyLin+cESE4dqZ61H+PiS96X6+w7wU+mmX+ZrkgnHVUPNR2PO4BmzwFeis8RKckm/wx1sM3SRofEwyeg=
Received: by 10.49.8.15 with SMTP id l15mr498989nfi;
        Tue, 22 Aug 2006 07:48:47 -0700 (PDT)
Received: by 10.48.213.8 with HTTP; Tue, 22 Aug 2006 07:48:46 -0700 (PDT)
Message-ID: <7ff566830608220748y3624e7a6k17e9e24fa254d95a@mail.gmail.com>
Date: Tue, 22 Aug 2006 10:48:46 -0400
From: "Kelly Price" <strredwolf@gmail.com>
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] writing device drivers howto
In-Reply-To: <OF862175CD.D4FCACAA-ONC12571D2.004A81C0-C12571D2.004ADC8D@cnsystems.at>
Precedence: bulk
List-Post: <mailto:gentoo-embedded@lists.gentoo.org>
List-Help: <mailto:gentoo-embedded+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-embedded+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-embedded+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-embedded.gentoo.org>
X-BeenThere: gentoo-embedded@gentoo.org
Reply-to: gentoo-embedded@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <OF862175CD.D4FCACAA-ONC12571D2.004A81C0-C12571D2.004ADC8D@cnsystems.at>
X-Archives-Salt: 084be3dc-f48e-47fa-8938-ace419d5eadc
X-Archives-Hash: 18c349224877a3ff4f2a44363c2e6091

On 8/22/06, andreas.sumper@cnsystems.at <andreas.sumper@cnsystems.at> wrote:
> This is some sort of offtopic, but I guess this is the best point to ask.
> I have an embedded system running linux. I need to access some special
> registers (e.g. containing the clock cycles, ...) So I managed to write a
> very simple module, which is able to access the registers. But what makes me
> worrying now, is the way, I have to get the data into my user-space
> application. Is there some documentation, concerning writing device drivers
> and accessing them from the user space anywhere? I found some documentation,
> but either I did not understand the part about getting data from kernel
> space into user space, or it was just simply missing.
>

Check the Linux Journal on Miscellaneous Character Devices.  There's
an article there you can use to base your work on.

-- 
Kelly "STrRedWolf" Price
http://strredwolf.furrynet.com
-- 
gentoo-embedded@gentoo.org mailing list