Thread: Question about _get_free_pages()

  1. #1
    Registered User
    Join Date
    Mar 2012
    Posts
    29

    Question about _get_free_pages()

    Hello
    In the code :

    unsigned long size = 2621440;
    unsigned int order;
    order = get_order(size);
    __get_free_pages(GFP_KERNEL,order);


    1.What value get_order(size) will return ?
    2.What calculation get_order() is doing ?

    Thank You

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Already asked - Question about _get_free_pages()
    What have you learnt in the past few hours from your own research?
    Or are you just lazing about on the beach/party waiting for someone else to RTFM for you?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question about _get_free_pages()
    By codewriter in forum C Programming
    Replies: 3
    Last Post: 03-25-2012, 09:49 AM
  2. Replies: 1
    Last Post: 03-23-2011, 09:00 AM
  3. *szString = things question/memory question
    By Jang in forum C Programming
    Replies: 3
    Last Post: 01-20-2011, 04:59 AM
  4. Newbish Question file reading question....
    By kas2002 in forum C Programming
    Replies: 23
    Last Post: 05-17-2007, 12:06 PM
  5. Self regiserting DLLs question and libraries question.
    By ApocalypticTime in forum Windows Programming
    Replies: 2
    Last Post: 03-22-2003, 02:02 PM