From: Carsten Paeth <calle@calle.in-berlin.de>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: Armin Schindler <armin@melware.de>, Adrian Bunk <bunk@stusta.de>,
kai.germaschewski@gmx.de, isdn4linux@listserv.isdn4linux.de,
Linux Kernel Mailinglist <linux-kernel@vger.kernel.org>,
kkeil@suse.de
Subject: Re: [2.6 patch] ISDN_CAPI_CAPIFS related cleanups
Date: Sun, 12 Feb 2006 12:09:07 +0100 [thread overview]
Message-ID: <20060212110903.GD17864@calle.in-berlin.de> (raw)
In-Reply-To: <1138996640.3830.5.camel@localhost.localdomain>
Hello,
I have no problems, when capifs is removed, but the pppdcapiplugin
has to work without it.
So if you want to remove capifs make sure pppdcapiplugin is
working without problems together with udev ...
I'm too busy to check pppdcapiplugin together with udev ....
regards,
calle
Fri, Feb 03, 2006 at 08:57:20PM +0100, Marcel Holtmann schrieb:
> Hi Armin,
>
> > > > > > > > This patch contains the following cleanups:
> > > > > > > > - move the help text to the right option
> > > > > > > > - replace some #ifdef's in capi.c with dummy functions in capifs.h
> > > > > > > > - use CONFIG_ISDN_CAPI_CAPIFS_BOOL in one place in capi.c
> > > > > > >
> > > > > > > I actually still like to see capifs removed completely. It is not really
> > > > > > > needed if you gonna use udev. The only thing that it is doing, is to set
> > > > > > > the correct permissions and make sure that the device nodes are created.
> > > > > > > And with a 2.6 kernel this can be all done by udev.
> > > > > >
> > > > > > udev is not mandatory.
> > > > > >
> > > > > > Static /dev is still 100% supported and working fine.
> > > > >
> > > > > and if you have static /dev then you can use mknod and chown by
> > > > > yourself. If you use CAPI on any newer distribution with the latest 2.6
> > > > > kernel you will have udev anyway and so no static /dev at all.
> > > >
> > > > Sorry for my ignorance, but I think capifs was introduced to have own
> > > > dynamic 'files' like pts and not to have the restrictions of character
> > > > devices and the needed major/minor numbers.
> > >
> > > I am under the impression that it was introduced to change the ownership
> > > of the device node the current process. Nothing more, nothing less.
> > > Please correct me if I am wrong here.
> >
> > I really don't know. Calle should be asked, I think he did that.
>
> I asked him some time ago, but never got a final feedback for it.
>
> > > > So changing this to character device nodes may break applications
> > > > out there.
> > >
> > > Actually I stopped compiling in and using capifs over a year ago and I
> > > never had any problems with it. However you must ensure that the device
> > > has been created by udev, nut nowadays this is no problem.
> >
> > I use capi-ppp connections with capifs. If you don't use capifs, how do you
> > do ppp over CAPI?
> >
> > What about the major number? Wouldn't we need a major number then?
>
> It has already a major number.
>
> > If udev is creating the device, it may be not existent when the application
> > expects it. E.g. the application is doing the ioctl to retreive the
> > connection number (filename) and expects to be able to open it. But in case
> > of udev, it might be not done in that time. So the application needs to wait
> > for some time..., but how long? I don't like this idea.
>
> This is a small race condition that existed with the original udev, but
> it was easy to work around it. Adding a simple sleep is enough and I did
> the same with Bluetooth RFCOMM. However it should be work nowadays, but
> I am not 100% sure. We should check this with the udev guys.
>
> Regards
>
> Marcel
>
next prev parent reply other threads:[~2006-02-12 11:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-31 21:33 Adrian Bunk
2006-01-31 21:44 ` Marcel Holtmann
2006-02-02 21:40 ` Adrian Bunk
2006-02-02 23:57 ` Marcel Holtmann
2006-02-03 8:45 ` Armin Schindler
2006-02-03 8:53 ` Marcel Holtmann
2006-02-03 10:18 ` Armin Schindler
2006-02-03 19:57 ` Marcel Holtmann
2006-02-12 11:09 ` Carsten Paeth [this message]
2006-02-12 11:36 ` Marcel Holtmann
2006-02-18 15:46 ` Carsten Paeth
2006-02-01 8:43 ` Armin Schindler
2006-02-01 10:44 ` Adrian Bunk
2006-02-01 11:01 ` Armin Schindler
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=20060212110903.GD17864@calle.in-berlin.de \
--to=calle@calle.in-berlin.de \
--cc=armin@melware.de \
--cc=bunk@stusta.de \
--cc=isdn4linux@listserv.isdn4linux.de \
--cc=kai.germaschewski@gmx.de \
--cc=kkeil@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=marcel@holtmann.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
all inboxes | Powered by JetHome®