public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: Kay Sievers <kay.sievers@vrfy.org>
Cc: Greg KH <greg@kroah.com>, linux-kernel@vger.kernel.org
Subject: Re: Implement class_device_update_dev() function
Date: Sat, 08 Jul 2006 11:27:20 +0200	[thread overview]
Message-ID: <1152350840.29506.2.camel@localhost> (raw)
In-Reply-To: <1152318397.3266.130.camel@pim.off.vrfy.org>

Hi Kay,

> > > But userspace should also find out about this change, and this patch
> > > prevents that from happening.  What about just tearing down the class
> > > device and creating a new one?  That way userspace knows about the new
> > > linkage properly, and any device naming and permission issues can be
> > > handled anew?
> > 
> > This won't work for Bluetooth. We create the TTY and its class device
> > with tty_register_device() and then the device node is present. Then at
> > some point later we open that device and the Bluetooth connection gets
> > established. Only when the connection has been established we know the
> > device that represents it. So tearing down the class device and creating
> > a new one will screw up the application that is using this device node.
> > 
> > Would reissuing the uevent of the class device help here?
> 
> How about KOBJ_ONLINE/OFFLINE?

I am not that familiar with the internals of kobject. Can you give me an
example on how to do that?

Regards

Marcel



  reply	other threads:[~2006-07-08  9:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-06 22:59 Implement class_device_update_dev() function Marcel Holtmann
2006-07-06 23:57 ` Greg KH
2006-07-07  7:42   ` Marcel Holtmann
2006-07-08  0:26     ` Kay Sievers
2006-07-08  9:27       ` Marcel Holtmann [this message]
2006-07-08 13:00         ` Kay Sievers
2006-07-08 13:28           ` Marcel Holtmann
2006-07-08 17:27             ` Marcel Holtmann
2006-07-11 23:18     ` Greg KH

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=1152350840.29506.2.camel@localhost \
    --to=marcel@holtmann.org \
    --cc=greg@kroah.com \
    --cc=kay.sievers@vrfy.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox