Re: Audio driver template

2007-07-10 Thread Christopher Davis
On 7/10/07, Alexander Leidinger <[EMAIL PROTECTED]> wrote: Quoting Christopher Davis <[EMAIL PROTECTED]> (from Mon, 9 Jul 2007 11:47:14 -0700): > http://people.freebsd.org/~cg/template.c > > Thought I would take a look at the audio driver template as > part of my task to modernize drivers, soc20

Re: add closefrom() call

2007-07-10 Thread Robert Watson
On Fri, 6 Jul 2007, LI Xin wrote: To RW: I have not found a suitable audit event for this, should I create a new event? BTW, I can add an AUE_CLOSEFROM event to OpenBSM. This may require a little work by event consumers who will now need to know about an additional source of implicit clos

Re: Audio driver template

2007-07-10 Thread John Baldwin
On Monday 09 July 2007 10:09:21 pm John-Mark Gurney wrote: > Christopher Davis wrote this message on Mon, Jul 09, 2007 at 11:47 -0700: > > http://people.freebsd.org/~cg/template.c > > > > Thought I would take a look at the audio driver template as > > part of my task to modernize drivers, soc2007.

Re: add closefrom() call

2007-07-10 Thread Julian Elischer
Joerg Sonnenberger wrote: On Mon, Jul 09, 2007 at 11:46:14PM -0400, Ighighi wrote: Calling F_MAXFD everytime we close a file descriptor would be heavy having too much fd's. On the other hand, it wouldn't make much a difference to just start from getdtablesize() - 1. I fully agree. That is the

RE: Audio driver template

2007-07-10 Thread Yuriy Tsibizov
> > http://people.freebsd.org/~cg/template.c > > > > Thought I would take a look at the audio driver template as > > part of my task to modernize drivers, soc2007. I would simplify > > the read and write functions to avoid using the bus tag and > > handle, but I'm not sure what else to do to bring

Re: add closefrom() call

2007-07-10 Thread Joerg Sonnenberger
On Mon, Jul 09, 2007 at 11:46:14PM -0400, Ighighi wrote: > Calling F_MAXFD everytime we close a file descriptor would be heavy > having too much fd's. > On the other hand, it wouldn't make much a difference to just start from > getdtablesize() - 1. I fully agree. That is the second version of cl

Re: Debugging time

2007-07-10 Thread Victor Snezhko
Ivan Voras <[EMAIL PROTECTED]> writes: >> For about half a year I have another weirdness with time on my >> -current box without vmware, maybe it's somehow has common origins >> with your behaviour. When I boot FreeBSD, ntpdate (which is set up to >> run via rc.conf) often reports huge time offset

Re: Audio driver template

2007-07-10 Thread Alexander Leidinger
Quoting Christopher Davis <[EMAIL PROTECTED]> (from Mon, 9 Jul 2007 11:47:14 -0700): http://people.freebsd.org/~cg/template.c Thought I would take a look at the audio driver template as part of my task to modernize drivers, soc2007. I would simplify the read and write functions to avoid using