Re: How disable attachment of sio(4) driver to device?

2005-10-21 Thread Daniel O'Connor
On Sat, 22 Oct 2005 06:09, Bernd Walter wrote: > I personally build specialized USB and Ethernet devices for doing > Modbus/RTU RS485 timing. We use 9 bit data RS485 (the ninth bit is used as an address mark so microcontrollers can sleep until it turns up then check if it's addressed to it and g

Re: where to release proc.p_stats

2005-10-21 Thread Julian Elischer
John Baldwin wrote: On Friday 21 October 2005 04:32 pm, David Schultz wrote: On Fri, Oct 21, 2005, John Baldwin wrote: On Friday 21 October 2005 09:13 am, nocool wrote: freebsd-hackers�ï�¼Œhello Question about 5.4 kernel source code. I have some question about

Re: where to release proc.p_stats

2005-10-21 Thread John Baldwin
On Friday 21 October 2005 04:32 pm, David Schultz wrote: > On Fri, Oct 21, 2005, John Baldwin wrote: > > On Friday 21 October 2005 09:13 am, nocool wrote: > > > freebsd-hackersï¼Œhello > > > > > > Question about 5.4 kernel source code. > > > I have some question about strust proc's initialize

Re: How disable attachment of sio(4) driver to device?

2005-10-21 Thread Bernd Walter
On Fri, Oct 21, 2005 at 10:35:43AM +0200, Frank Behrens wrote: > Hi, > > I'm writing a device driver for UART with a protocol, that can not be > handled by the default sio(4) driver. The driver works fine - the > only problem I have is to disable the attachment of sio(4) driver to > the device.

Re: where to release proc.p_stats

2005-10-21 Thread David Schultz
On Fri, Oct 21, 2005, John Baldwin wrote: > On Friday 21 October 2005 09:13 am, nocool wrote: > > freebsd-hackersï¼Œhello > > > > Question about 5.4 kernel source code. > > I have some question about strust proc's initialize. Kernel use > > proc_zone > > to allocate proc items and initia

Re: How disable attachment of sio(4) driver to device?

2005-10-21 Thread Marcel Moolenaar
On Oct 21, 2005, at 9:06 AM, M. Warner Losh wrote: Another solution would be to have your driver use the tty layer instead of banging the hardware directly, if that is compatible with the goals of your driver. A better alternative is to teach uart(4) about the protocol. It's designed to allow

locking of a subsystem (remove of spl calls)

2005-10-21 Thread Gordon Bergling
Hi, I am about to write a special display driver, which should be something like a framebuffer device, in terms of FreeBSD. I whould like to make this driver from at the beginning MPSAFE, but I am not sure that this is possible. Looking at some devices in sys/dev/fb and sys/dev/syscons there are

USB mouse, wheel doesn't work

2005-10-21 Thread Kris Maglione
I have a gyration mouse. At first, it didn't work, but I got it working by setting sc->sc_iid to 0 in USB_ATTACH in ums.c. The only problem that I have now is that the wheel doesn't work. The wheel is supposed to be reported in the 4th byte of sc_ibuf. The problem is that nothing after the thi

Re: How disable attachment of sio(4) driver to device?

2005-10-21 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> John Baldwin <[EMAIL PROTECTED]> writes: : But you could hack the sio(4) driver to check its IO port and return ENXIO if : it has a certain value, for example. Yes. You could also do that. I have a tree somewhere that has some changes in this directio

Re: where to release proc.p_stats

2005-10-21 Thread John Baldwin
On Friday 21 October 2005 09:13 am, nocool wrote: > freebsd-hackers,hello > > Question about 5.4 kernel source code. > I have some question about strust proc's initialize. Kernel use > proc_zone > to allocate proc items and initialize them with proc_init > (sys\kern\kern_proc.c) functi

Re: How disable attachment of sio(4) driver to device?

2005-10-21 Thread John Baldwin
On Friday 21 October 2005 12:06 pm, M. Warner Losh wrote: > In message: <[EMAIL PROTECTED]> > > "Frank Behrens" <[EMAIL PROTECTED]> writes: > : I want to use the second port with my driver. I had no luck with > : hint.sio.1.disabled="1", but hint.sio.1.flags="0x40" > : gave me the desi

Re: How disable attachment of sio(4) driver to device?

2005-10-21 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> "Frank Behrens" <[EMAIL PROTECTED]> writes: : I want to use the second port with my driver. I had no luck with : hint.sio.1.disabled="1", but hint.sio.1.flags="0x40" : gave me the desired result: : sio1: reserved for low-level i/o Allocate the resources

Re: telnetd/sshd and Kerberos tickets (PAM)

2005-10-21 Thread Harti Brandt
On Fri, 21 Oct 2005, Stijn Hoop wrote: SH>On Fri, Oct 21, 2005 at 04:08:14PM +0200, Harti Brandt wrote: SH>> I have enabled the pam_krb5 module in pam.d/{login,telnetd,sshd}. When SH>> login in locally I get a Kerberos ticket as I would expect. When logging SH>> in via ssh or telnet I don't get

Re: telnetd/sshd and Kerberos tickets (PAM)

2005-10-21 Thread Stijn Hoop
On Fri, Oct 21, 2005 at 04:08:14PM +0200, Harti Brandt wrote: > I have enabled the pam_krb5 module in pam.d/{login,telnetd,sshd}. When > login in locally I get a Kerberos ticket as I would expect. When logging > in via ssh or telnet I don't get one. I have digged around in the sources > and it l

telnetd/sshd and Kerberos tickets (PAM)

2005-10-21 Thread Harti Brandt
Hi all, I have enabled the pam_krb5 module in pam.d/{login,telnetd,sshd}. When login in locally I get a Kerberos ticket as I would expect. When logging in via ssh or telnet I don't get one. I have digged around in the sources and it locks like telnetd never calls pam_setcred() which would do

where to release proc.p_stats

2005-10-21 Thread nocool
freebsd-hackers,hello Question about 5.4 kernel source code. I have some question about strust proc's initialize. Kernel use proc_zone to allocate proc items and initialize them with proc_init (sys\kern\kern_proc.c) function. In this function, we can find the field proc.p_stats

unexpected (temporary) free space when unlinking files on a snapshot FS

2005-10-21 Thread user
Create 8 1gig files. (check free space on disk) Create a snapshot. Delete all 8 1gig files. At this point you would expect the free space on disk to match what it was when you just checked it earlier (see above). However, for a small amount of time (a minute or so ?) You actually get a fair

Re: USB mouse problem

2005-10-21 Thread Sergey Babkin
>I do have the mouse working, but with a couple of issues. The main problem >seems to be that the last 3 bytes of the sc_data seem to be wrong. Their >values never change from the time that the device is attached. They're usually >all 0, but sometimes have values. The forth byte is supposed to

Re: USB mouse problem

2005-10-21 Thread Sergey Babkin
>I do have the mouse working, but with a couple of issues. The main problem >seems to be that the last 3 bytes of the sc_data seem to be wrong. Their >values never change from the time that the device is attached. They're usually >all 0, but sometimes have values. The forth byte is supposed to

How disable attachment of sio(4) driver to device?

2005-10-21 Thread Frank Behrens
Hi, I'm writing a device driver for UART with a protocol, that can not be handled by the default sio(4) driver. The driver works fine - the only problem I have is to disable the attachment of sio(4) driver to the device. Example: I'm using FreeBSD 6.0-BETA3 on a new machine with 2 UART interfa