mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: linux lover <linux_lover2004@yahoo.com>
To: linux-os@analogic.com, linux-kernel@vger.kernel.org
Subject: Re: Accessing data structure from kernel space
Date: Wed, 23 Mar 2005 08:41:29 -0800 (PST)	[thread overview]
Message-ID: <20050323164129.70589.qmail@web52204.mail.yahoo.com> (raw)
In-Reply-To: 6667

Hello linux-os,
--- linux-os <linux-os@analogic.com> wrote:
> 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().
> 
      How can i access that linked list structure in
kernel at user space say if i write character driver
as /dev/readll then how to link that structure to
device driver
? 
> 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.
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

             reply	other threads:[~2005-03-23 16:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-23 16:41 linux lover [this message]
2005-03-23 17:16 ` linux-os
     [not found] <fa.kvq30up.1h3mr8j@ifi.uio.no>
2005-03-30 12:27 ` Bodo Eggert
  -- strict thread matches above, loose matches on Subject: below --
2005-03-30  7:22 linux lover
2005-03-23 16:41 linux lover
2005-03-23 18:15 ` Paul Jackson
2005-03-23 13:20 linux lover
2005-03-23 13:28 ` linux-os
2005-03-23 13:42   ` Jan Engelhardt

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=20050323164129.70589.qmail@web52204.mail.yahoo.com \
    --to=linux_lover2004@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-os@analogic.com \
    /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®