All of lore.kernel.org
 help / color / mirror / Atom feed
* malloc
@ 2010-12-20  4:39 ratheesh k
  2010-12-20  4:43 ` malloc Santosh Sivaraj
  2010-12-27 18:51 ` malloc Uriel Corfa
  0 siblings, 2 replies; 9+ messages in thread
From: ratheesh k @ 2010-12-20  4:39 UTC (permalink / raw)
  To: linux-c-programming

Is the below statement right or wrong ?

malloc tries to allocate continous memmory space in virtual address
space.  not in physical address space.

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Malloc
@ 2015-09-29 17:17 Gohar Irfan
  2015-09-29 17:26 ` Malloc Andrew Cooper
  0 siblings, 1 reply; 9+ messages in thread
From: Gohar Irfan @ 2015-09-29 17:17 UTC (permalink / raw)
  To: xen-devel@lists.xen.org

What is the alternate of doing a malloc in Xen?
I have a data structure (containing a list from the list.h implementation) and I want to initialize a pointer and allocate space for my struct. But since malloc doesn’t work in Xen, what should I do?

Thanks
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread
* malloc
@ 2002-06-17 21:26 Earl R. Lapus
  2002-06-17 13:48 ` malloc Glynn Clements
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Earl R. Lapus @ 2002-06-17 21:26 UTC (permalink / raw)
  To: linux-c-prog

hi,
   I tried doing this:
       ucp = (unsigned char *) malloc(0);
   it was successful and returned a valid address. I was kinda hoping
   it would do something weird...When I looked at the man page It said 
   something like.. "If your application needs to generate empty objects, 
   you may use malloc(0) for this purpose..."

   So my questions are:
       What do you mean when you say EMPTY OBJECT?
       Does it ocuppy any memory storage?

=========================
 ...what i want and what i need
 IS and WILL always be FREE...
                    -brandon boyd-
=========================

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

end of thread, other threads:[~2015-09-29 17:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-20  4:39 malloc ratheesh k
2010-12-20  4:43 ` malloc Santosh Sivaraj
2010-12-27 18:51 ` malloc Uriel Corfa
  -- strict thread matches above, loose matches on Subject: below --
2015-09-29 17:17 Malloc Gohar Irfan
2015-09-29 17:26 ` Malloc Andrew Cooper
2002-06-17 21:26 malloc Earl R. Lapus
2002-06-17 13:48 ` malloc Glynn Clements
2002-06-17 14:32 ` malloc Jason P. Winters
2002-06-17 16:47 ` malloc Mehran Rezaei

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.