LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-05-2006, 01:24 AM   #1
omkarlagu
LQ Newbie
 
Registered: Jan 2006
Posts: 13

Rep: Reputation: 1
alloc_page and alloc_pages


hello everybody ,
i want to allocate a page in KERNEL module so i am using the core function

struct page *alloc_pages(unsigned int gfp_mask,unsigned int order);

and using as page = alloc_pages(GFP_KERNEL,1);

which is returning me a negative value .. i am confused about the whole stuff

omkarlagu@yahoo.com
 
Old 02-05-2006, 02:52 AM   #2
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Rep: Reputation: 30
error values are negative in the linux kernel as defined in <linux/error.h>.

Last edited by slzckboy; 02-05-2006 at 09:00 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration