All of lore.kernel.org
 help / color / mirror / Atom feed
* The question come again.
@ 2005-07-10  3:28 liyu@WAN
  2005-07-10  3:53 ` Valdis.Kletnieks
  0 siblings, 1 reply; 2+ messages in thread
From: liyu@WAN @ 2005-07-10  3:28 UTC (permalink / raw)
  To: LKML

Hi, everyone on LKML:
   
    I am reading slab implement code (2.6.11.11).

    The function kmalloc() is one of the frequently used funtions in 
kernel , of course,
it is one of my focuses.

    But I found it may call __you_cannot_kmalloc_that_much(). but I can 
not get where is
defined. I tried to search in LXR , Source navigator, and run grep in 
include, mm directory,
but nothing to return.

    What's secret in here? Waitting for any answer.

    Thanks.



                                                             liyu
                                                                  NOW~


                                                            

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: The question come again.
  2005-07-10  3:28 The question come again liyu@WAN
@ 2005-07-10  3:53 ` Valdis.Kletnieks
  0 siblings, 0 replies; 2+ messages in thread
From: Valdis.Kletnieks @ 2005-07-10  3:53 UTC (permalink / raw)
  To: liyu@WAN; +Cc: LKML

[-- Attachment #1: Type: text/plain, Size: 531 bytes --]

On Sun, 10 Jul 2005 11:28:20 +0800, "liyu@WAN" said:

>     But I found it may call __you_cannot_kmalloc_that_much(). but I can 
> not get where is
> defined.

Note that you can only reach it if you have a *compile-time constant* of
over 32M or so in size.  If it's smaller, it will catch the appropriate
if/then from kmalloc_sizes.h (and all the others removed by the optimizer).

And since there *isn't* a definition, you'll get a complaint when you
try to link vmlinux - and the complaint will tell you where it's referenced.



[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-10  3:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-10  3:28 The question come again liyu@WAN
2005-07-10  3:53 ` Valdis.Kletnieks

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.