Question about _get_free_pages()

This is a discussion on Question about _get_free_pages() within the Linux Programming forums, part of the Platform Specific Boards category; 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) ...

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

    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,656
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 03: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, 01:02 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21