linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* where does vmlist be initiated?
@ 1999-08-17  2:12 Wang Yong
  1999-08-18 11:59 ` Neil Booth
  0 siblings, 1 reply; 2+ messages in thread
From: Wang Yong @ 1999-08-17  2:12 UTC (permalink / raw)
  To: linux-mm mail list

hi,
  i found this structure is defined in mm/vmalloc.c :
  "static struct vm_struct * vmlist = NULL;"

  it appears that vmlist be initiated as null. but in function
get_vm_area(), which is called by kmalloc(), it doesn't work if vmlist is
null. so i think vmlist must be initiated somewhere else. but where? thx

regards,
Wang

--
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/

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

* Re: where does vmlist be initiated?
  1999-08-17  2:12 where does vmlist be initiated? Wang Yong
@ 1999-08-18 11:59 ` Neil Booth
  0 siblings, 0 replies; 2+ messages in thread
From: Neil Booth @ 1999-08-18 11:59 UTC (permalink / raw)
  To: Wang Yong; +Cc: Linux-MM

Wang Yong wrote:-
> hi,
>   i found this structure is defined in mm/vmalloc.c :
>   "static struct vm_struct * vmlist = NULL;"
> 
>   it appears that vmlist be initiated as null. but in function
> get_vm_area(), which is called by kmalloc(), it doesn't work if vmlist is
> null. so i think vmlist must be initiated somewhere else. but where? thx

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.
--
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/

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

end of thread, other threads:[~1999-08-18 11:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-17  2:12 where does vmlist be initiated? Wang Yong
1999-08-18 11:59 ` Neil Booth

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