Re: do_brk() trace mystery

From: Chris Friesen
Date: Fri Mar 12 2004 - 15:23:31 EST

sting sting wrote:

But I did a search on the kernel tree fo do_brk()
and I found only 5 entries (in 2.6 kernel and also in 2.4.24).
One of the was the declaration in mm.h; the other was
implementation in mmap.c

You probably want sys_brk().

So the mystery is : who calls the brk() system call when I type
"cat /proc/interrupts"

cat calls malloc(), glibc calls brk(), kernel does sys_brk()


Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email: cfriesen@xxxxxxxxxxxxxxxxxx
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at