user-space resource information...

2000-11-04 Thread Mike Smith
Well, I'm really sick of people complaining about not being able to get at the things the resource manager knows from userspace. So I've done something about it. Please review: http://ziplok.dyndns.org/msmith/rman.diff http://ziplok.dyndns.org/msmith/iostat.diff which adds the new '-r'

Re: dhcp boot was: Re: diskless workstation

2000-11-04 Thread John Hay
the dhcp.xxx stuff is easy, the problem is that the DHCP options are not enough, so im trying to look into defining a FBSDclass ala PXEClient, and supplying stuff like usr-ip/usr-path swap-ip/swap-path or whatever. You don't need those; you can get them out of /etc/fstab. In particular,

Re: irq status

2000-11-04 Thread opentrax
On 3 Nov, Alexander Anderson wrote: In mailing.freebsd.hackers, you wrote: Is their a tool out their or does anyone have a quick bit of code / hack that will "probe" all of the irqs on my box and tell me which ones are used / available?? No. You can glean some of this information

Re: Is this how to use Freebsd?

2000-11-04 Thread Rik van Riel
On Thu, 2 Nov 2000, Don Muller wrote: Well, the company did not explain how, or why it happened. The programmer I work with suggested BSD.Of course I wanted security! Well, they gave me some explanation that the server was hacked at the xfs port. But later I was told that the ftp port on

vcount - only devices?

2000-11-04 Thread andrew
Hi, I'm just looking at vcount in sys/kern/vfs_subr.c. The comment says that it works on special devices. Does this mean it wont work if called on a vnode of a regular file? That seems unlikely but I've no idea what I'm doing in these regions of code either :-) Thanks, Andrew To

Re: vcount - only devices?

2000-11-04 Thread andrew
On Sat, 4 Nov 2000 [EMAIL PROTECTED] wrote: I'm just looking at vcount in sys/kern/vfs_subr.c. The comment says that it works on special devices. Does this mean it wont work if called on a I think I see what it means now. It is meaning that ir works on the file the vnode is for as opposed

Re: vcount - only devices?

2000-11-04 Thread andrew
Hi, I just wrote a man page for vcount and count_dev but as you can guess from my previous questions I'm not to sure its accurate. Could someone take a glance at if they get a moment? That way less people like me should come to bug you in the future :-) I based it off Eivind Eklund's namei.9

KLD's on ISA bus: how?

2000-11-04 Thread Rink Springer
Hi guys, I am still trying to create a FreeBSD driver for a D-Link DE620 pocket ethernet adapter. I've got the thing to attach to ISA and everything, but then I decided it'd be much handier if I would re-write this thing so it'd use KLD instead, for easy debugging and on-the-fly usuage of the

Re: Logging users out

2000-11-04 Thread andrew
On Tue, 31 Oct 2000, Terry Lambert wrote: not noticing that read was returning 0 (which is returned on EOF, but is also returned on perfectly goo non-blocking fds, and in the If you read from a non blocking fd (and there is nothing to read) don't you get -1 and errno = EAGAIN? case that

Re: Logging users out

2000-11-04 Thread andrew
On Tue, 31 Oct 2000, Terry Lambert wrote: (struct tty *)-t_pgrp-pg_id Which is the process ID of the group leader of the foregroun group. Isn't this what tcgetpgrp returns? Problem with this is that it probably isn't the PID of the session leader. Wouldn't I need (struct tty

4.2beta and shmget

2000-11-04 Thread Stephanie Wehner
Hi, hm, even if I compile the kernel with options SYSVSHM, I don't seem to have a working shmget. Did I miss anything important ? bye, @rak [EMAIL PROTECTED] - FreeBSD --- hegemoOn jx : yeah im a net-monk hegemoOn and i pray every day for the soul

Re: dhcp boot was: Re: diskless workstation

2000-11-04 Thread Doug Ambrisko
John Hay writes: | the dhcp.xxx stuff is easy, the problem is that the DHCP options are not | enough, so im trying to look into defining a FBSDclass ala PXEClient, and | supplying stuff like usr-ip/usr-path swap-ip/swap-path or whatever. | | You don't need those; you can get them out of

Re: dhcp boot was: Re: diskless workstation

2000-11-04 Thread John Hay
John Hay writes: | the dhcp.xxx stuff is easy, the problem is that the DHCP options are not | enough, so im trying to look into defining a FBSDclass ala PXEClient, and | supplying stuff like usr-ip/usr-path swap-ip/swap-path or whatever. | | You don't need those; you can get them

Re: dhcp boot was: Re: diskless workstation

2000-11-04 Thread Mathew KANNER
On Nov 04, John Hay wrote: John Hay writes: | the dhcp.xxx stuff is easy, the problem is that the DHCP options are not | enough, so im trying to look into defining a FBSDclass ala PXEClient, and | supplying stuff like usr-ip/usr-path swap-ip/swap-path or whatever. | | You

jail and sysvipc (was Re: 4.2beta and shmget)

2000-11-04 Thread Stephanie Wehner
On Sat, Nov 04, 2000 at 10:47:27AM -0700, Wes Peters wrote: It works fine for me. Try this little program and see if it successfully attaches the shared memory segment: thx :) actually I think it might have something to do with jail then, cause this test works fine on the actual host machine

Re: jail and sysvipc (was Re: 4.2beta and shmget)

2000-11-04 Thread James Housley
Stephanie Wehner wrote: On Sat, Nov 04, 2000 at 10:47:27AM -0700, Wes Peters wrote: It works fine for me. Try this little program and see if it successfully attaches the shared memory segment: thx :) actually I think it might have something to do with jail then, cause this test

Re: user-space resource information...

2000-11-04 Thread Wilko Bulte
On Sat, Nov 04, 2000 at 03:43:28AM -0800, Mike Smith wrote: Well, I'm really sick of people complaining about not being able to get at the things the resource manager knows from userspace. So I've done something about it. Please review: http://ziplok.dyndns.org/msmith/rman.diff

Re: user-space resource information...

2000-11-04 Thread Mike Smith
Comments? Here's some sample output; the leading index numbers are Just 2: why are the irqs displayed in hex? See the following comment regarding "formatting conventions". There's no easy way for the program to know that they're IRQs (and IMO it shouldn't), so no way to know that they

Re: dhcp boot was: Re: diskless workstation

2000-11-04 Thread Danny Braniss
In message [EMAIL PROTECTED]you write: } [...] }The option-128 confuse the pxeboot program. If I put } }option root-path "/export/diskless"; }option option-128 "10.1.2.3:/export/shark"; } }in the dhcpd.conf file, pxeboot tries to mount /export/sharkM-^[^B-i=FF }as the root filesystem. Removing

Re: user-space resource information...

2000-11-04 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], Mike Smith writes: Comments? Here's some sample output; the leading index numbers are Just 2: why are the irqs displayed in hex? See the following comment regarding "formatting conventions". There's no easy way for the program to know that they're IRQs (and

Re: dhcp boot was: Re: diskless workstation

2000-11-04 Thread Doug Ambrisko
John Hay writes: | You don't, it is done via the bootp or dhcp record option 128 for example |option option-128 "192.168.2.254:/usr/work/netboot"; | You then have to make the swap file in that directory of format |swap.IP of client | Use dd to create the file by copying

Re: dhcp boot was: Re: diskless workstation

2000-11-04 Thread John Hay
| You don't, it is done via the bootp or dhcp record option 128 for example |option option-128 "192.168.2.254:/usr/work/netboot"; | You then have to make the swap file in that directory of format |swap.IP of client | Use dd to create the file by copying /dev/zero for

Re: user-space resource information...

2000-11-04 Thread Mike Smith
In message [EMAIL PROTECTED], Mike Smith writes: Comments? Here's some sample output; the leading index numbers are Just 2: why are the irqs displayed in hex? See the following comment regarding "formatting conventions". There's no easy way for the program to know that they're

Re: dhcp boot was: Re: diskless workstation

2000-11-04 Thread Mike Smith
Yes, you are right. Putting the ip number in the root-path cures the pxeboot failure. But is still only configure the NFS ROOT according to the kernel's output. I had a look at the pxe code in /sys/boot/i386/libi386/pxe.c where pxeboot is built from and in /sys/i386/i386/autoconf.c which is

Re: dhcp boot was: Re: diskless workstation

2000-11-04 Thread Doug Ambrisko
John Hay writes: | | You don't, it is done via the bootp or dhcp record option 128 for example | |option option-128 "192.168.2.254:/usr/work/netboot"; | | You then have to make the swap file in that directory of format | |swap.IP of client | | Use dd to create the file

Re: KLD's on ISA bus: how?

2000-11-04 Thread Warner Losh
In message [EMAIL PROTECTED] Rink Springer writes: : I got the stuff to compile et al, but I cannot get the darned thing to : run as a KLD. FreeBSD doesn't appear to try to probe for the interface : :(. When I tell FreeBSD it's a PCI thing (instead of ISA), it probes for : it... : : How can I

Re: KLD's on ISA bus: how?

2000-11-04 Thread Sergey Babkin
Warner Losh wrote: In message [EMAIL PROTECTED] Rink Springer writes: : I got the stuff to compile et al, but I cannot get the darned thing to : run as a KLD. FreeBSD doesn't appear to try to probe for the interface : :(. When I tell FreeBSD it's a PCI thing (instead of ISA), it probes for

Re: KLD's on ISA bus: how?

2000-11-04 Thread Warner Losh
In message [EMAIL PROTECTED] Sergey Babkin writes: : Maybe I'm missing something but I think that the point of the identify : routine is to discover this address whatever it is, so it does not : have to be fixed. That doesn't work on the ISA bus too well, unless the card can only be in a few

Protect a VFS buffer from VM - how

2000-11-04 Thread Zhiui Zhang
I understand that memory belonged to a buffer will not be paged out by VM daemon. Now I want protect that memory from being cleaned by VM daemon as well. Should I use vfs_busy_pages() or just assume that since my pages are on the active queue, VM daemon will not touch it (it only cleans pages on

Re: KLD's on ISA bus: how?

2000-11-04 Thread Sergey Babkin
Warner Losh wrote: In message [EMAIL PROTECTED] Sergey Babkin writes: : In 4.x if you say in config file : : foo at isa : : and provide the identify routine in the driver the result should be : the same. The "ep" driver does that using a proprietary probe : procedure. Most cards

Re: Is this how to use Freebsd?

2000-11-04 Thread Gregory Sutter
On 2000-11-02 20:56 -0800, Alfred Perlstein [EMAIL PROTECTED] wrote: * Daniel C. Sobral [EMAIL PROTECTED] [001102 19:26] wrote: 1) please wrap lines at 70 characters when posting to the list. Furthermore, DO NOT send html-formatted messages. I, for one, delete without even reading

Re: jail and sysvipc (was Re: 4.2beta and shmget)

2000-11-04 Thread Wes Peters
Stephanie Wehner wrote: On Sat, Nov 04, 2000 at 10:47:27AM -0700, Wes Peters wrote: It works fine for me. Try this little program and see if it successfully attaches the shared memory segment: thx :) actually I think it might have something to do with jail then, cause this test

Re: KLD's on ISA bus: how?

2000-11-04 Thread Warner Losh
In message [EMAIL PROTECTED] Sergey Babkin writes: : Ah, right. I confused it with another case, where the probe routine : tries to look for all possible ports. If I remember correctly, : "aha" is an example of such device. Yes. aha is pushing the upper limits of what is safe to do. Warner

Re: user-space resource information...

2000-11-04 Thread Warner Losh
In message [EMAIL PROTECTED] Mike Smith writes: : Well, I'm really sick of people complaining about not being able to get : at the things the resource manager knows from userspace. So I've done : something about it. Cool. I've wanted this for some time now. : 0: Interrupt request lines

Re: user-space resource information...

2000-11-04 Thread Kenneth D. Merry
On Sat, Nov 04, 2000 at 11:52:35 -0800, Mike Smith wrote: I'm wondering if this should have its own program, rather than squat in on iostat ? Adding yet another program for such a trivial fragment of code seems kinda silly. If/when someone uses the other interfaces as well to get the