Re: Editing /usr/include/*.h?

2004-05-06 Thread leafy
On Wed, May 05, 2004 at 11:57:45PM -0700, Julian Elischer wrote: > > Would it be possible to adjust these to get 32 char usernames? People > > with very long names in a corporate environment would love to have this. > yes we used 32 char names on the interjet. What is the disadvantage of using 32

ioctl

2004-05-06 Thread Artis Caune
Is it correct to use code like this instead of copyin() / copyout() ? Kernel module gets pointer to structure which resides in userland memory space and modify it directly!!! > userland: ioctl(tp_fd, TP_GET_TP_STATS, &tp_stats) > kernel: tp_stats->hooked = hooked; (freebsd 5.x, KLD) -

Re: SIG_IGN

2004-05-06 Thread Mark Wolgemuth
On May 5, 2004, at 12:21 AM, Cole wrote: Hey Im writing a threaded program to handle connections coming from squid. And the program is working fine, except that i cant seem to set signal(SIGPIPE, SIG_IGN) It doesnt give any errors when performing that command, and then when i check to see what SI

Re: kmem_malloc crashes running FreeBSD 5.2.1-RELEASE-p5

2004-05-06 Thread Stefan Bethke
Am 04.05.2004 um 01:11 schrieb Kris Kennaway: I'm pretty sure it's just a matter of the right tuning. All I needed to do was to add this on my heavily loaded 4GB machine: options VM_KMEM_SIZE_MAX=419430400 #400MB Thanks, that appears to have resolved the issue. I encountered no more

Re: ioctl

2004-05-06 Thread John Baldwin
On Thursday 06 May 2004 03:57 am, Artis Caune wrote: > Is it correct to use code like this > instead of copyin() / copyout() ? > Kernel module gets pointer to structure > which resides in userland memory space > and modify it directly!!! No, that's probably bogus. >> userland: ioctl(tp_fd, TP

Re: ioctl

2004-05-06 Thread Stephan Uphoff
Artis Caune wrote: > Is it correct to use code like this > instead of copyin() / copyout() ? > Kernel module gets pointer to structure > which resides in userland memory space > and modify it directly!!! The copyout() is just hidden. The ioctl request codes are magic and contain the size of the

find symbols in loadable kernel module

2004-05-06 Thread elmar gerdes
Hi, I'm looking for a mechanism that allows one loadable kernel module to find the symbols of another module, i.e. find a function 'foo' by its name and get the address of it, so I can call it. I've stumbled across kernel objects which should allow me to do this using kobj_lookup_metho