attaching ugen(4) on multi interface USB devices

2004-10-06 Thread Niki Denev
Hello everyone!, The last 1-2 days i've been trying to make some userspace OBEX utilities to work with a USB based Nokia GSM phone and doing this i discovered something that confuses me a little: The phone in question is Nokia 6230 and it has an USB interface. The phone has 11 interface descrip

help with porting from NetBSD

2004-10-06 Thread bk.ru
--[ Hello everyone, First of all sorry for my english... I need some help with porting kernel drivers from NetBSD to FreeBSD (usb irda driver for my Tekram dongle)... Can you help me with some docs, some kind of tutorials or faqs, or something else with this subject, please? Because i didn'

Re: attaching ugen(4) on multi interface USB devices

2004-10-06 Thread Bernd Walter
On Wed, Oct 06, 2004 at 03:30:05PM +0300, Niki Denev wrote: > > Hello everyone!, > > The last 1-2 days i've been trying to make some userspace OBEX utilities to > work with a USB based Nokia GSM phone and doing this i discovered something > that confuses me a little: > The phone in question is

Re: attaching ugen(4) on multi interface USB devices

2004-10-06 Thread Mathew Kanner
On Oct 06, Niki Denev wrote: > The last 1-2 days i've been trying to make some userspace OBEX utilities to > work with a USB based Nokia GSM phone and doing this i discovered something > that confuses me a little: > The phone in question is Nokia 6230 and it has an USB interface. > The phone has

syslog() reentrant when compiling with -pthread?

2004-10-06 Thread Marc Balmer
Hi I am a long time Unix developer but new with FreeBSD. I worked the last years mostly with OpenBSD. First I am overwhelmed by the number of mailing lists you guys provide. Second I am not sure if I picked the right one ;-) So please direct me to the right place if this list is only for dis

Re: syslog() reentrant when compiling with -pthread?

2004-10-06 Thread Dan Nelson
In the last episode (Oct 06), Marc Balmer said: > I am a long time Unix developer but new with FreeBSD. I worked the > last years mostly with OpenBSD. First I am overwhelmed by the number > of mailing lists you guys provide. Second I am not sure if I picked > the right one ;-) So please direct me

Re: syslog() reentrant when compiling with -pthread?

2004-10-06 Thread Dan Nelson
In the last episode (Oct 06), Dan Nelson said: > > My question regarding thread-safeness of syslog(): On OpenBSD I > > used syslog_r() to do thread safe logging (the software in question > > is a sendmail milter, which runs multithreaded). FreeBSD does not > > have these functions, but the cc man

Re: syslog() reentrant when compiling with -pthread?

2004-10-06 Thread Robert Dormer
For what it's worth, I've used syslog to the *console* before, in a multithreaded network daemon. No problems encountered. On Wed, 6 Oct 2004 16:28:32 +0200, Marc Balmer <[EMAIL PROTECTED]> wrote: > Hi > > I am a long time Unix developer but new with FreeBSD. I worked the last > years mostly wi

Re: syslog() reentrant when compiling with -pthread?

2004-10-06 Thread Julian Elischer
you probably want [EMAIL PROTECTED] Marc Balmer wrote: Hi I am a long time Unix developer but new with FreeBSD. I worked the last years mostly with OpenBSD. First I am overwhelmed by the number of mailing lists you guys provide. Second I am not sure if I picked the right one ;-) So please di

Re: attaching ugen(4) on multi interface USB devices

2004-10-06 Thread Brian Fundakowski Feldman
On Wed, Oct 06, 2004 at 09:48:49AM -0400, Mathew Kanner wrote: > On Oct 06, Niki Denev wrote: > > The last 1-2 days i've been trying to make some userspace OBEX utilities to > > work with a USB based Nokia GSM phone and doing this i discovered something > > that confuses me a little: > > The phon

Where to start for someone new to kernel coding

2004-10-06 Thread John Oxley
Hi, I am on this list so there is no need to cc me. I want to extend the disk quota system: - Implement a user space daemon to control it. - Pass control from the kernel to the user space daemon. By doing this, you can have much finer grained control over disk quota's, such as controling directo

Re: Protection from the dreaded "rm -fr /"

2004-10-06 Thread Thomas Sparrevohn
On Wednesday 06 October 2004 02:31, Matthew Dillon wrote: The university I used to work for had something like it and it got 99% of the cases > Yow. 78 messages and counting. Er, 79 now. I'll bet poor Giorgos > wishes he never started this thread! Get ready. get set DIVE! >

Printing from kernel

2004-10-06 Thread Roman Kurakin
Hi, I have some problems with printing from kernel. At first I think that my problems was cause I use printf, but changed all of them to log cause it safe to use from interrupt handlers. The situation become better but I still observe system lockup in case I output some debug information fr

Re: Printing from kernel

2004-10-06 Thread Don Lewis
On 7 Oct, Roman Kurakin wrote: > Hi, > > I have some problems with printing from kernel. > At first I think that my problems was cause I use printf, > but changed all of them to log cause it safe to use from > interrupt handlers. The situation become better but I still > observe system lock

Re: Printing from kernel

2004-10-06 Thread Greg 'groggy' Lehey
On Thursday, 7 October 2004 at 0:31:33 +0400, Roman Kurakin wrote: > Hi, > > I have some problems with printing from kernel. > At first I think that my problems was cause I use printf, > but changed all of them to log cause it safe to use from > interrupt handlers. The situation become bett

Re: syslog() reentrant when compiling with -pthread?

2004-10-06 Thread Marc Balmer
Am 06.10.2004 um 16:48 schrieb Dan Nelson: The only unsafe part is openlog(), so set that up before you start any threads and you'll be okay. Once the log fd is opened, the syslog() call looks to be thread-safe. Everything in there is done with local variables and atomic writes. At least on OpenB

Re: syslog() reentrant when compiling with -pthread?

2004-10-06 Thread Dan Nelson
In the last episode (Oct 07), Marc Balmer said: > At least on OpenBSD I can use "%m" in the syslog() format string. > This results in a call to strerror(), which is not thread safe, > AFAIK. This probably is true for FreeBSD as well, so we have the > following three conditions for thread safe sys

Re: Printing from kernel

2004-10-06 Thread Søren Schmidt
Roman Kurakin wrote: Hi, I have some problems with printing from kernel. At first I think that my problems was cause I use printf, but changed all of them to log cause it safe to use from interrupt handlers. The situation become better but I still observe system lockup in case I output some deb