Re: KLD Programming

2001-07-19 Thread Eugene L. Vorokov
Yes. But it is not easy. Look at code vfs_vnops.c. You can let a user process open a file and then push the file descriptor into kernel via a special system call. Search the mailing list archive and you will find discussions on how to add a new system call. Well, if you aren't going to

KLD parameters

2001-07-19 Thread Eugene L. Vorokov
Hello, it seems that I can't pass any parameters to a KLD module when I load it (i.e., some command line). Am I missing something, or if not, why is it like that, on purpose or just no one was willing to implement that ? Regards, Eugene To Unsubscribe: send mail to [EMAIL PROTECTED] with

Re: pci device driver writing newbie

2001-07-19 Thread Murray Stokely
On Wed, Jul 18, 2001 at 09:08:31PM -0400, Kenneth Wayne Culver wrote: get my module (which right now does mostly nothing except probing and attaching) to detect the ACPI function of this chip, but right now pciconf -l shows it as chip0. I found the devid in /usr/src/sys/pci/pcisupport.c,

Re: KLD parameters

2001-07-19 Thread Andrew R. Reiter
This was discussed before... I think if you want it, implement it. :-/ andrew On Thu, 19 Jul 2001, Eugene L. Vorokov wrote: Hello, it seems that I can't pass any parameters to a KLD module when I load it (i.e., some command line). Am I missing something, or if not, why is it like that,

Re: Weird stdarg.h problem in 4.3-STABLE

2001-07-19 Thread Terry Lambert
Sheldon Hearn wrote: What I really want is a static inline void function declared in a header file and included in various source files, looking something like this: static inline void [ ... ] GCC gives syntax error before 'void'. Fair enough. So obviously, this should be implemented

Re: arcnet support for FreeBSD (request for review)

2001-07-19 Thread Julian Elischer
Max Khon wrote: hi, there! what is arcnet? I have made second attempt to implement Arcnet support for FreeBSD (the first was made about two years ago and nothing was ever committed) probably no committers had arcnet or could test it.. To Unsubscribe: send mail to [EMAIL PROTECTED]

Re: arcnet support for FreeBSD (request for review)

2001-07-19 Thread David Scheidt
On Thu, 19 Jul 2001, Julian Elischer wrote: :Max Khon wrote: : : hi, there! : :what is arcnet? : It's a token-based LAN protocol. It's used in some embedded applications, as its controllers are cheap, it's pretty low-overhead, and has deterministic behavior (you can calculate the worst case

Re: arcnet support for FreeBSD (request for review)

2001-07-19 Thread Joerg Micheel
On Thu, Jul 19, 2001 at 02:35:51AM -0500, David Scheidt wrote: On Thu, 19 Jul 2001, Julian Elischer wrote: :Max Khon wrote: : : hi, there! : :what is arcnet? : It's a token-based LAN protocol. It's used in some embedded applications, as its controllers are cheap, it's pretty

Re: Weird stdarg.h problem in 4.3-STABLE

2001-07-19 Thread Sheldon Hearn
On Thu, 19 Jul 2001 00:16:13 MST, Terry Lambert wrote: Second, questions like this really belong on -questions... or even one of the C language or gcc mailing lists... ;-). You're right. I initially had the mail addressed to freebsd-questions and then made the all-too common mistake of

Re: x86 unaligned access followup.

2001-07-19 Thread Terry Lambert
John Baldwin wrote: Also note that this will play hell with some of the recent copy avoidance changes made by Bill Paul to the ethernet drivers, to avoid the expense of copying the packet, with the knowledge that there would be an increased overhead in the resulting packet field

Re: x86 unaligned access followup.

2001-07-19 Thread Terry Lambert
[EMAIL PROTECTED] wrote: A shakedown cruise could end up being very rough... you would effectively need to check an unaligned access in kernel is OK flag in many of these instances, and fall back to doing the copy when it was false. ...therefore - never mind. Perhaps some app code may

Re: Quick question about x86 asm

2001-07-19 Thread Terry Lambert
Farooq Mela wrote: cc -S is your friend. Right, well that can certainly help, but what gcc generates can be dependant on calling convention, optimization setting, c c, and though the code generated in one particular scenario may not be an absolute indicator of it's behavior. In other

Re: arcnet support for FreeBSD (request for review)

2001-07-19 Thread Terry Lambert
Julian Elischer wrote: hi, there! what is arcnet? Old PC networking standard, limited to 2Mbit/S. -- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: arcnet support for FreeBSD (request for review)

2001-07-19 Thread Alfred Perlstein
* Terry Lambert [EMAIL PROTECTED] [010719 03:29] wrote: Julian Elischer wrote: hi, there! what is arcnet? Old PC networking standard, limited to 2Mbit/S. My college had it, if they still do I may be able to toss them a FreeBSD cdrom and say go for it. :) -- -Alfred Perlstein

Re: libpcap and pthreads

2001-07-19 Thread Guy Harris
Is it possible to use libpcap with pthreads? (I want to use just pcap_dispatch() function) I very much doubt so. It's not possible to use it in any kind of multithreaded applications, even with select() scenarios. That's a BPF problem, not a libpcap problem; see PR kern/22063 bpf when

ypbind broken...

2001-07-19 Thread Harti Brandt
Hi, The last commit to ypbind (1.34) breaks parsing of the -S option. The following patch should fix this. harti Index: ypbind.c === RCS file: /usr/ncvs/src/usr.sbin/ypbind/ypbind.c,v retrieving revision 1.34 diff -c -r1.34

Re: ypbind broken...

2001-07-19 Thread Dima Dorfman
Harti Brandt [EMAIL PROTECTED] writes: Hi, The last commit to ypbind (1.34) breaks parsing of the -S option. The following patch should fix this. Oops, my fault; I've applied a variant of this. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of

Re: flock/pthread bug?

2001-07-19 Thread Louis-Philippe Gagnon
Lots of ideas to try (esp. since I don't need FIFO); thanks! LPG - Original Message - From: Terry Lambert [EMAIL PROTECTED] Louis-Philippe Gagnon wrote: From: Julian Elischer [EMAIL PROTECTED] probably you should try : #define LOCK_NB0x04 /* don't

NFS local mount

2001-07-19 Thread Attila Nagy
Hello, I am currently installing a machine on which I want to replace the NULL and/or UNIONFS mounts with NFS. NFS server and client on the same machine, to be exact, for jailing purposes (this seems to be the most stable). The problem is, that at the FreeBSD boot process the NFS filesystems

Re: pci device driver writing newbie

2001-07-19 Thread Kenneth Wayne Culver
On Wed, Jul 18, 2001 at 09:08:31PM -0400, Kenneth Wayne Culver wrote: get my module (which right now does mostly nothing except probing and attaching) to detect the ACPI function of this chip, but right now pciconf -l shows it as chip0. I found the devid in /usr/src/sys/pci/pcisupport.c,

inpcb question

2001-07-19 Thread sridharv
I have written a kernel module and modified the stack code ( at the socket layer) to send control to my module. I am trying to access the inpcb structure associated with that particular socket. struct in_pcb* inp = sotoinpcb(so); if (inp) processing though the pbc structure is

Re: arcnet support for FreeBSD (request for review)

2001-07-19 Thread Marc
On Thu, 19 Jul 2001, Rik van Riel wrote: what is arcnet? Old PC networking standard, limited to 2Mbit/S. I believe there is also 16 and 100 Mbit arcnet hardware available ;) That's just plain scary ;-) Although I guess Arcnet does have it's niche applications. -marc To

Re: libpcap and pthreads

2001-07-19 Thread Brian O'Shea
You could put the code that calls pcap_dispatch() in a separate single- threaded process and communicate with your multithreaded application via an IPC mechanism such as pipes or shared memory. -brian On Thu, Jul 19, 2001 at 07:47:35AM +1200, Joerg Micheel wrote: Privjet Andrey, On Wed,

Re: arcnet support for FreeBSD (request for review)

2001-07-19 Thread Max Khon
hi, there! On Thu, 19 Jul 2001, Marc wrote: I believe there is also 16 and 100 Mbit arcnet hardware available ;) That's just plain scary ;-) Although I guess Arcnet does have it's niche applications. yes. it is often used as solution for last mile problem and people ask for Arcnet

Re: KLD parameters

2001-07-19 Thread Peter Pentchev
Actually, it is implemented - to some extent - in -current via the hints mechanism. There is still some more work to be done, though :) G'luck, Peter -- yields falsehood, when appended to its quotation. yields falsehood, when appended to its quotation. On Thu, Jul 19, 2001 at 03:02:40AM

Re: arcnet support for FreeBSD (request for review)

2001-07-19 Thread Julian Elischer
On Thu, 19 Jul 2001, Joerg Micheel wrote: On Thu, Jul 19, 2001 at 02:35:51AM -0500, David Scheidt wrote: On Thu, 19 Jul 2001, Julian Elischer wrote: :Max Khon wrote: : : hi, there! : :what is arcnet? : It's a token-based LAN protocol. It's used in some embedded

Re: arcnet support for FreeBSD (request for review)

2001-07-19 Thread Len Conrad
That's just plain scary ;-) Although I guess Arcnet does have it's niche applications. niche now (reliable, cheap, shielded transformer-coupled for nasty e/m environments), but in the 80's, Novell basically built itself up to 80% market share and the LAN marketpalce on ARCnet´s back, while

RE: release.8 (4.3-RELEASE)

2001-07-19 Thread John Baldwin
On 18-Jul-01 Etienne de Bruin wrote: But what does this accomplish in the contect of release.8 if our purpose is to 'copy' all the binaries to the new mfsroot? All the binaries live in /stand. You have /stand/ls, /stand/sysinstall, etc. all as one big crunch file. The /bin and /sbin symlinks

roll of /stand in mfsroot

2001-07-19 Thread Etienne de Bruin
(I meant to post this to freebsd-hackers instead of freebsd-questions) I am in the process of building a mfsroot that I want to write_mfs_in_kernel. Because I don't really have any space constraints it is my understanding that all I need to do is build up my directories, gzip and

Re: x86 unaligned access followup.

2001-07-19 Thread John Baldwin
On 19-Jul-01 Terry Lambert wrote: [EMAIL PROTECTED] wrote: A shakedown cruise could end up being very rough... you would effectively need to check an unaligned access in kernel is OK flag in many of these instances, and fall back to doing the copy when it was false. ...therefore -

Re: NFS local mount

2001-07-19 Thread Michael Sinz
Attila Nagy wrote: Hello, I am currently installing a machine on which I want to replace the NULL and/or UNIONFS mounts with NFS. NFS server and client on the same machine, to be exact, for jailing purposes (this seems to be the most stable). The problem is, that at the FreeBSD boot

Re: x86 unaligned access followup.

2001-07-19 Thread Matthew Jacob
It is very rare that the alpha port is broken as you describe. Sometimes a bug will have a different affect on the alpha than on x86, but except for bugs in sys/alpha that x86'ers won't be committing, very few of the bugs break just the alpha and not the x86 as well. Generally this is

Re: x86 unaligned access followup.

2001-07-19 Thread Sudish Joseph
Matthew Jacob writes: Actually, to be fair, we'd have to consider all the kernel subsystems that have *not* in fact been tested on alpha. The dozens of warnings from NetGraph or CODA code indicate that there might be problems there, for instance. NetGraph certainly has some 32-bit

Re: x86 unaligned access followup.

2001-07-19 Thread Matthew Jacob
Cool. Thanks. I'll rip it out of modules builds for alpha then- it'll save some time in kernel rebuilds. On 19 Jul 2001, Sudish Joseph wrote: Matthew Jacob writes: Actually, to be fair, we'd have to consider all the kernel subsystems that have *not* in fact been tested on alpha. The

Re: inpcb question

2001-07-19 Thread Terry Lambert
] I have written a kernel module and modified the stack ] code ( at the socket layer) to send control to my ] module. I am trying to access the inpcb structure ] associated with that particular socket. ] struct in_pcb* inp = sotoinpcb(so); ] if (inp) ] processing ] ] ] though the

PF_LOCAL in getaddrinfo

2001-07-19 Thread Oscar Bonilla
I was trying to compile OpenLDAP 2 with support for ldapi:/// which uses the PF_LOCAL family. However, I've discovered that the PF_LOCAL entry in getaddrinfo is ifdef'd out. This is the relevant code for /usr/src/lib/libc/net/getaddrinfo.c #if 0 { PF_LOCAL, 0, ANY, ANY, NULL, 0x01 },

Status of agpgart device

2001-07-19 Thread Farooq Mela
Hi hackers@, What is the status of the /dev/agpgart device? (I'm running 4.3-STABLE with a recent cvsup). Is it working, perhaps using a compatible interface with the linux device the of the same name (I can dream can't I ;-) ? I ask because I recently tried compiling Utah-GLX with AGP

Re: wx0 jumbo frame support explosions..

2001-07-19 Thread Matthew Jacob
Finally following up on this... was this with -current or -stable? On Mon, 9 Jul 2001, Geoff Mohler wrote: When I enable jumbo frames in /usr/src/sys/pci.if_wx.c, and then set it via 'ifconfig wx0 mtu 9000' once the new kernel is booted..my system immediately goes zonkers...not even

Default retry behaviour for mount_nfs

2001-07-19 Thread Ian Dowse
Shortly after the TI-RPC changes in -current, the default retry behaviour for mount_nfs was changed. Previously, mount_nfs would keep retrying for a long time (~1 week) if the server didn't respond, but since revision 1.40 of mount_nfs.c, it gives up on non-background mounts after one attempt.

Re: Default retry behaviour for mount_nfs

2001-07-19 Thread Matthew Jacob
FWIW, I vote 'yes' on the question in the last paragraph. On Fri, 20 Jul 2001, Ian Dowse wrote: Shortly after the TI-RPC changes in -current, the default retry behaviour for mount_nfs was changed. Previously, mount_nfs would keep retrying for a long time (~1 week) if the server didn't

Re: Default retry behaviour for mount_nfs

2001-07-19 Thread Matthew Jacob
So the question is - should I keep the new behaviour that is probably a better default and will catch out fewer new users but may surprise some experienced users, or should I revert to the traditional default where `-R1' or `-b' are required to avoid boot-time hangs? Sorry- let me be

Re: wx0 jumbo frame support explosions..

2001-07-19 Thread Geoff Mohler
FreeBSD speedracer.speedtoys.com 4.3-RELEASE FreeBSD 4.3-RELEASE #3: On Thu, 19 Jul 2001, Matthew Jacob wrote: Finally following up on this... was this with -current or -stable? On Mon, 9 Jul 2001, Geoff Mohler wrote: When I enable jumbo frames in /usr/src/sys/pci.if_wx.c, and then

Re: cvs commit: src/gnu/lib/libdialog checklist.c menubox.c radiolist.c textbox.c tree.c yesno.c

2001-07-19 Thread Eric Melville
I can't tell any more how many times this annoying libdialog has bitten me in this regard. Don't think you're the only one :) Even better - I take it sysinstall then uses 'sane' space/enter combo's also (it being a consumer of libdialog)? Yes, my big purpose here was to make sysinstall a

Re: wx0 jumbo frame support explosions..

2001-07-19 Thread Matthew Jacob
Ah. Well, it doesn't crash in FreeBSD-current. It doesn't work well *either*, but I'm curious- was wx0 resident or was it kldload'ed by the ifconfig? -matt On Thu, 19 Jul 2001, Geoff Mohler wrote: FreeBSD speedracer.speedtoys.com 4.3-RELEASE FreeBSD 4.3-RELEASE #3: On Thu, 19 Jul

Re: wx0 jumbo frame support explosions..

2001-07-19 Thread Geoff Mohler
It would crash when I forced the large MTU size when already running at the default MTU size. I would reconfig the Netapp box to jumbo, then ifconfig up the wx0 interface..bang crash. On Thu, 19 Jul 2001, Matthew Jacob wrote: Ah. Well, it doesn't crash in FreeBSD-current. It doesn't work

Close a PR! - we're still not done...

2001-07-19 Thread Poul-Henning Kamp
As you can see on http://phk.freebsd.dk/Gnats/ We have managed to shave 600 PR's off the total by doing a concerted effort, and thanks to a few dedicated people we have managed to avoid an increase despite the fact that people have forgotten to close PRs again. Basically, we're at

Kernel module options Was: Re: Fw: help me!!!!

2001-07-19 Thread Gordon Tetlow
On Sat, 14 Jul 2001, Mike Smith wrote: and how to compile the individual module, which should reflect changes in kenel also? .. Modules are built as part of the kernel build. You can also build modules idependantly in sys/modules. Note that module code should not depend on options

Re: arcnet support for FreeBSD (request for review)

2001-07-19 Thread Wes Peters
Julian Elischer wrote: On Thu, 19 Jul 2001, Joerg Micheel wrote: On Thu, Jul 19, 2001 at 02:35:51AM -0500, David Scheidt wrote: On Thu, 19 Jul 2001, Julian Elischer wrote: :Max Khon wrote: : : hi, there! : :what is arcnet? : It's a token-based LAN protocol.

Re: arcnet support for FreeBSD (request for review)

2001-07-19 Thread Joerg Micheel
On Thu, Jul 19, 2001 at 11:27:43PM -0600, Wes Peters wrote: Julian Elischer wrote: On Thu, 19 Jul 2001, Joerg Micheel wrote: On Thu, Jul 19, 2001 at 02:35:51AM -0500, David Scheidt wrote: On Thu, 19 Jul 2001, Julian Elischer wrote: :Max Khon wrote: : : hi, there!

Re: Default retry behaviour for mount_nfs

2001-07-19 Thread Gordon Tetlow
On Thu, 19 Jul 2001, Matthew Jacob wrote: So the question is - should I keep the new behaviour that is probably a better default and will catch out fewer new users but may surprise some experienced users, or should I revert to the traditional default where `-R1' or `-b' are required to

Re: Default retry behaviour for mount_nfs

2001-07-19 Thread Matthew Jacob
On Thu, 19 Jul 2001, Gordon Tetlow wrote: On Thu, 19 Jul 2001, Matthew Jacob wrote: So the question is - should I keep the new behaviour that is probably a better default and will catch out fewer new users but may surprise some experienced users, or should I revert to the

Re: Default retry behaviour for mount_nfs

2001-07-19 Thread Gordon Tetlow
On Thu, 19 Jul 2001, Matthew Jacob wrote: On Thu, 19 Jul 2001, Gordon Tetlow wrote: On Thu, 19 Jul 2001, Matthew Jacob wrote: So the question is - should I keep the new behaviour that is probably a better default and will catch out fewer new users but may surprise some

Re: Default retry behaviour for mount_nfs

2001-07-19 Thread Matthew Jacob
Hmm, I don't believe so. It was a temporary network glitch (damn flaky distribution switch) and the user wasn't able to login via xdm (his home directory was on the NFS partition in question). I personally think the non-blocking behavior is better. In some cases, yes, in some cases,

Re: Status of agpgart device

2001-07-19 Thread Coleman Kane
4.3-RELEASE comes with an agp device. Simply add agp_load=YES to your /boot/loader.conf file, or device agp to your kernel config file. It only supports certain AGP bridges though, look in /usr/src/sys/pci/agp* for more info. On Thu, Jul 19, 2001 at 04:48:00PM -0700, Farooq Mela wrote, and it