mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Seems the comment of find_next_system_ram() is not exact
@ 2011-09-24 13:40 Wizard
  2011-09-25  9:42 ` Borislav Petkov
  0 siblings, 1 reply; 5+ messages in thread
From: Wizard @ 2011-09-24 13:40 UTC (permalink / raw)
  To: linux-kernel

Hi, Experts

I am a newbie for linux kernel. I just read the code of
find_next_system_ram() in kernel/resource.c

I think the comment of this function is not exact. This says "Finds
the lowest memory reosurce exists within [res->start.res->end)".

While I think the code is to find the lowest memory resource overlaps
[res->start, res->end).

308:      if ((p->end >= start) && (p->start < end))

If I am not correct, please let me know. :)

BTW, I find the "reosurce" is a typo.

-- 
Wizard

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

end of thread, other threads:[~2011-09-26  0:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-24 13:40 Seems the comment of find_next_system_ram() is not exact Wizard
2011-09-25  9:42 ` Borislav Petkov
2011-09-25 15:02   ` Wizard
2011-09-25 20:09     ` Borislav Petkov
2011-09-26  0:26     ` KAMEZAWA Hiroyuki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®