lkml.org 
[lkml]   [2006]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Passing references to kobjects between userland and kernel
On Wed, Jun 14, 2006 at 04:26:38PM +0200, Daniele orlandi wrote:
>
> Hello,
>
> I'm trying to figure out what is the correct way to pass references to
> kobjects between userland and kernel space.

Use the kobject_uevent() call from kernelspace to let userspace know
whatever you want it to. That is what it is there for :)

>
> I have my big object hierarchy of kobjects representing a TDM interconnect
> graph with channels, crossconnectors, physical ports and so on.
> The main objects are nodes and archs; archs connect two nodes together.
>
> The hierarchy is exported to sysfs.
>
> From userland I want to tell the kernel "Connect node X to node Y".

Then use the names of the kobjects within your subdirectory. They have
to be unique so you should be safe.

Or use configfs :)

thanks,

greg k-h
-
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/

\
 
 \ /
  Last update: 2006-06-17 02:04    [W:0.056 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site