On Fri, 4 Jan 2008 15:03:41 +0800
Denis Cheng [EMAIL PROTECTED] wrote:
this adds a read-write /proc/pid/smp_affinity entry,
just like what /proc/irq/irq/smp_affinity does,
so now we can get and set the affinity of tasks by procfs,
this is especially useful used in shell scripts.
this also
On Jan 10, 2008 8:33 AM, Andrew Morton [EMAIL PROTECTED] wrote:
On Fri, 4 Jan 2008 15:03:41 +0800
Denis Cheng [EMAIL PROTECTED] wrote:
this adds a read-write /proc/pid/smp_affinity entry,
just like what /proc/irq/irq/smp_affinity does,
so now we can get and set the affinity of tasks by
From d2be88406fdc1d28a7cf0b1a13ca761d625820a5 Mon Sep 17 00:00:00 2001
From: Denis Cheng [EMAIL PROTECTED]
Date: Fri, 4 Jan 2008 14:50:54 +0800
Subject: [PATCH] PROC_FS: get and set the smp affinity of tasks by
read-write /proc/pid/smp_affinity
this adds a read-write /proc/pid/smp_affinity entry,
rael wrote:
length check copied from kernel/irq/proc.c, now 'page' buffer couldn't
be overrun,
Thanks.
although Documentation/filesystems/proc.txt is heavily outdated,
I'll add introduction of smp_affinity.
Good - my usual benchmark for documentation is that at least one place
in the code
this adds a read-write /proc/pid/smp_affinity entry,
just like what /proc/irq/irq/smp_affinity does,
so now we can get and set the affinity of tasks by procfs,
this is especially useful used in shell scripts.
this also adds a read-write /proc/pid/tasks/tid/smp_affinity
for the same purpose.
Cc:
Denis wrote:
+ length += sprintf(page + length, \n);
Could that overrun the 'page' buffer by one byte?
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson [EMAIL PROTECTED] 1.940.382.4214
--
To unsubscribe
6 matches
Mail list logo