lkml.org 
[lkml]   [2011]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectSeems the comment of find_next_system_ram() is not exact
From
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


\
 
 \ /
  Last update: 2011-09-24 15:43    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog