lkml.org 
[lkml]   [2009]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 2/2] slub: add Documentation/ABI/testing/sysfs-kernel-slab
On Thu, 23 Apr 2009, David Rientjes wrote:

> I'm more concerned with the userspace API. You're comfortable with
> letting userspace determine what allocator the kernel is using either by
> testing for the presence of certain slub or slqb-specific files or
> checking the config?

Why would userspace have to test? If the fields have the same semantics
then we are fine.

> That should be fine since there's parity among the files that both
> allocators share, but seems fragile if an allocator adds a file that was
> previously only applicable to the other or the API happens to change.

Right. The newly added file must not be in use by another allocator.

> My thinking was that /sys/kernel/slqb would be a permanent reference point
> that userspace could easily test to determine what API is available.

The API is hopefully generic enought to accomodate all allocators.



\
 
 \ /
  Last update: 2009-04-24 01:07    [W:0.054 / U:1.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site