Re: Junior Kernel Hacker Task: M_ZERO

2000-10-22 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], David Malone writes: On Sat, Oct 21, 2000 at 09:48:47AM -0400, Garrett Rooney wrote: If anybody is looking for a simple task to perform in the FreeBSD kernel: this is it. Before anyone else starts looking at this, I've collected and cleaned up the patches I've

Re: Junior Kernel Hacker Task: M_ZERO

2000-10-22 Thread David Malone
Now, if one or two people will review this patch and verify that LINT GENERIC kernels compile the same, we're set for commit... It works fine with GENERIC - atleast I tested a buildworld with sources build with it. I don't think LINT compiles at the moment, atleast it seems to get stuck in

Re: Junior Kernel Hacker Task: M_ZERO

2000-10-22 Thread Jesper Skriver
On Sun, Oct 22, 2000 at 06:54:25PM +0100, David Malone wrote: Now, if one or two people will review this patch and verify that LINT GENERIC kernels compile the same, we're set for commit... It works fine with GENERIC - atleast I tested a buildworld with sources build with it. I don't

Re: Junior Kernel Hacker Task: M_ZERO

2000-10-21 Thread Garrett Rooney
If anybody is looking for a simple task to perform in the FreeBSD kernel: this is it. A quick grep tells me that there are at least 91 files in the src/sys tree which could use this flag to simplify and optimize the code. i'll probably start looking at these this week sometime...

Re: Junior Kernel Hacker Task: M_ZERO

2000-10-21 Thread David Malone
On Sat, Oct 21, 2000 at 09:48:47AM -0400, Garrett Rooney wrote: If anybody is looking for a simple task to perform in the FreeBSD kernel: this is it. A quick grep tells me that there are at least 91 files in the src/sys tree which could use this flag to simplify and optimize the code.

Junior Kernel Hacker Task: M_ZERO

2000-10-20 Thread Poul-Henning Kamp
I have introduced the M_ZERO flag to the kernel malloc, which provides the service to bzero() the memory allocted. In the kernel sources, the archetypical change to use this facility looks like this: Old code: databuf = malloc(length, M_DEVBUF, M_WAITOK);

Re: Junior Kernel Hacker Task: M_ZERO

2000-10-20 Thread Robert Drehmel
In 17100.972069144@critter, Poul-Henning Kamp wrote: If anybody is looking for a simple task to perform in the FreeBSD kernel: this is it. Is it necessary to announce it somewhere, when I want to do that? Submit changes to the maintainer of the file (if any) or with send-pr.