mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: Accessing data structure from kernel space
@ 2005-03-23 16:41 linux lover
  2005-03-23 18:15 ` Paul Jackson
  0 siblings, 1 reply; 9+ messages in thread
From: linux lover @ 2005-03-23 16:41 UTC (permalink / raw)
  To: Jan Engelhardt, linux-kernel

Hello sir,
--- Jan Engelhardt <jengelh@linux01.gwdg.de> 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??
> 
> Yes!!
        So that mean i can read that linked list
structure and print them in user space that will have
some kernel internel info.
> 
> >>       Also how to add own system call usable at
> user
> >> level from kernel module??
> 
> !!
> 
> > Many people will tell you to use the /proc
> file-system.
> 
> *cough* sysfs *cough*
> err...(due to new horizons):
> *cough* relayfs *cough*
> 
> 

     Whats that? Can you please elaborate to me as i
am newbie to those words. Pleaseeee.

> 
> Jan Engelhardt
> -- 
> 

Thanks in advance.
regards,
linux_lover.

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

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <fa.kvq30up.1h3mr8j@ifi.uio.no>]
* Re: Accessing data structure from kernel space
@ 2005-03-30  7:22 linux lover
  0 siblings, 0 replies; 9+ messages in thread
From: linux lover @ 2005-03-30  7:22 UTC (permalink / raw)
  To: linux-kernel; +Cc: jengelh, linux-os, pj

Hello sir,
          
       I successfully added linked list data structure
  in kernel in header file. Write a C source file and
add it to kernel directory. then write 2 system calls
that read and write to linked list from user space
through that syscalls. 
       recompile kernel. Now able to read/write that
linked list.
       I want to write user data in that linked list
and allow kernel to use that info in linked list. Is
my approach to send data from user to kernel  and
store there as long as OS is not rebooted is right?
 Please reply me.
Thanks in advance.
regards,
linux_lover.  
           



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Accessing data structure from kernel space
@ 2005-03-23 16:41 linux lover
  2005-03-23 17:16 ` linux-os
  0 siblings, 1 reply; 9+ messages in thread
From: linux lover @ 2005-03-23 16:41 UTC (permalink / raw)
  To: linux-os, linux-kernel

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 

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Accessing data structure from kernel space
@ 2005-03-23 13:20 linux lover
  2005-03-23 13:28 ` linux-os
  0 siblings, 1 reply; 9+ messages in thread
From: linux lover @ 2005-03-23 13:20 UTC (permalink / raw)
  To: linux-kernel

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.


		
__________________________________ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-03-30 13:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-23 16:41 Accessing data structure from kernel space linux lover
2005-03-23 18:15 ` Paul Jackson
     [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 17:16 ` linux-os
2005-03-23 13:20 linux lover
2005-03-23 13:28 ` linux-os
2005-03-23 13:42   ` Jan Engelhardt

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®