On Tue, 12 Feb 2008, Paul Jackson wrote:That doesn't logically follow because the aggregate of the mode and the optional flags _are_ the policy itself. If you want to know whether a policy is interleave, for example, and don't care whether it is referring to static (absolute) node ids, then you need to mask that off. The reality of the kernel code is that these policies are not only restricted to kernel/mempolicy.c. They are also shared with filesystem code that store them in a single member of a struct as well. The interface between those two are functions that would now need to be modified to include additional parameters to pass the flags along. Additionally, these flags need to be "glued together" with the mode in userspace to pass to the syscalls anyway, so they're facing the exact same challenge. So once this gets a little traction, I think it will quickly become the norm for how you think about the 'policy' member of the struct. David --
| Ingo Molnar | [patch 12/13] syslets: x86: optimized copy_uatom() |
| Greg Kroah-Hartman | [PATCH 017/196] aoechr: Convert from class_device to device |
| Yinghai Lu | Re: 2.6.26, PAT and AMD family 6 |
| Jan Engelhardt | intel iommu (Re: -mm merge plans for 2.6.23) |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | [GIT]: Networking |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Natalie Protasevich | [BUG] New Kernel Bugs |
