RE: gfp_mask flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

> can anyone explain what is the difference between the gfp flags
> GFP_KERNEL and GFP_USER, knowing the fact that both have the same
> modifier flags (__GFP_WAIT | __GFP_IO | __GFPFS)  
> 

The __GFP_HARDWALL is the flag that makes the difference. 

#define GFP_KERNEL      (__GFP_WAIT | __GFP_IO | __GFP_FS)
#define GFP_USER        (__GFP_WAIT | __GFP_IO | __GFP_FS | __GFP_HARDWALL)

There seems to be some concept of hardwalls and softwalls, and it seems this flag reduces the softwall check to hardwall. Given limited knowledge of allocator ... this is all I can say

:-(

Rajat

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux