From: Greg KH <greg@kroah.com>
To: Daniele orlandi <daniele@orlandi.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Passing references to kobjects between userland and kernel
Date: Fri, 16 Jun 2006 16:58:00 -0700 [thread overview]
Message-ID: <20060616235800.GA29573@kroah.com> (raw)
In-Reply-To: <200606141626.39273.daniele@orlandi.com>
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
next prev parent reply other threads:[~2006-06-17 0:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-14 14:26 Passing references to kobjects between userland and kernel Daniele orlandi
2006-06-16 23:58 ` Greg KH [this message]
2006-06-19 23:48 ` Daniele Orlandi
2006-06-19 23:53 ` Greg KH
2006-06-20 7:17 ` Daniele Orlandi
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=20060616235800.GA29573@kroah.com \
--to=greg@kroah.com \
--cc=daniele@orlandi.com \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.