linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Wang Yong" <wangyong@sun475.cs.tsinghua.edu.cn>
To: Neil Booth <NeilB@earthling.net>
Cc: linux-mm mail list <linux-mm@kvack.org>
Subject: »Ø¸´: where does vmlist be initiated?
Date: Sat, 21 Aug 1999 10:38:57 +0800	[thread overview]
Message-ID: <000801beeb7e$5ed16360$0601a8c0@honey.cs.tsinghua.edu.cn> (raw)

-----Original Message-----
.c 1/4 thEE: Neil Booth <NeilB@earthling.net>
EO 1/4 thEE: Wang Yong <wung_y@263.net>
3-EI: Linux-MM <
EOAEU: 1999Ae8OA19EO 4:03
O/Ia: Re: where does vmlist be initiated?


>
>Hi Wang,
>
>There's only 3 lines that reference it in vmalloc.c, so it
>shouldn't be too hard to figure out, no?
>
>Neil.
>

Hi Neil,
  yes, vmlist does only referenced three times in vmalloc.c after it's
defined as NULL. These references are the only reference of vmlist
throughout the whole kernel. let's check them:

struct vm_struct * get_vm_area(unsigned long size)
{
...
 for (p = &vmlist; (tmp = *p) ; p = &tmp->next) {
  if (size + addr < (unsigned long) tmp->addr)
...
 }
}

void vfree(void * addr)
{
 for (p = &vmlist ; (tmp = *p) ; p = &tmp->next) {
...
 }
}

long vread(char *buf, char *addr, unsigned long count)
{
...
 for (tmp = vmlist; tmp; tmp = tmp->next) {
...
 }
}

i think these three functions will not be able to work if vmlist is null. do
you think so?


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/

             reply	other threads:[~1999-08-21  2:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-21  2:38 Wang Yong [this message]
1999-08-21  7:43 ` 指鹸 : " Neil Booth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000801beeb7e$5ed16360$0601a8c0@honey.cs.tsinghua.edu.cn' \
    --to=wangyong@sun475.cs.tsinghua.edu.cn \
    --cc=NeilB@earthling.net \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox