Thread: valloc()

  1. #1
    Registered User
    Join Date
    Jun 2007
    Posts
    99

    valloc()

    Need some explaination, please ?

    Referring to - http://www.mkssoftware.com/docs/man3/valloc.3.asp

    The valloc() function has the same effect as malloc()ok!

    ,except that the allocated memory is aligned to a page boundary.does that mean, memory allocated should be restricted to a page, and we cannot allocated memory more than the defined page size by the OS, because then the allocation will cross the page boundary?

  2. #2
    Fear the Reaper...
    Join Date
    Aug 2005
    Location
    Toronto, Ontario, Canada
    Posts
    625
    From what I get of the statement, it just means the memory starts at a page boundary, so I'd imagine there's no reason why it can't be bigger than a page.
    Teacher: "You connect with Internet Explorer, but what is your browser? You know, Yahoo, Webcrawler...?" It's great to see the educational system moving in the right direction

  3. #3
    Registered User
    Join Date
    Jun 2007
    Posts
    99
    Quote Originally Posted by Happy_Reaper View Post
    From what I get of the statement, it just means the memory starts at a page boundary, so I'd imagine there's no reason why it can't be bigger than a page.
    seems reasonable, thanx

Popular pages Recent additions subscribe to a feed