lkml.org 
[lkml]   [2002]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Lse-tech] [patch] Simple Topology API v0.3 (2/2)
On Thu, Aug 22, 2002 at 12:15:07PM -0700, Matthew Dobson wrote:
> diff -Nur linux-2.5.27-vanilla/kernel/sys.c linux-2.5.27-api/kernel/sys.c
> --- linux-2.5.27-vanilla/kernel/sys.c Sat Jul 20 12:11:07 2002
> +++ linux-2.5.27-api/kernel/sys.c Wed Jul 24 17:33:41 2002
> @@ -20,6 +20,7 @@
> #include <linux/device.h>
> #include <linux/times.h>
> #include <linux/security.h>
> +#include <linux/topology.h>
>
> #include <asm/uaccess.h>
> #include <asm/io.h>
> @@ -1236,6 +1237,31 @@
> mask = xchg(&current->fs->umask, mask & S_IRWXUGO);
> return mask;
> }
> +
> +asmlinkage long sys_check_topology(int convert_type, int to_convert)
> +{
> + int ret = 0;
> +
> + switch (convert_type) {
> + case CPU_TO_NODE:
> + ret = cpu_to_node(to_convert);
> + break;
> + case MEMBLK_TO_NODE:
> + ret = memblk_to_node(to_convert);
> + break;
> + case NODE_TO_NODE:
> + ret = node_to_node(to_convert);
> + break;
> + case NODE_TO_CPU:
> + ret = node_to_cpu(to_convert);
> + break;
> + case NODE_TO_MEMBLK:
> + ret = node_to_memblk(to_convert);
> + break;
> + }
> +
> + return (long)ret;
> +}

You don't consider this a proper syscall API, do you?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.039 / U:0.512 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site