[lkml]   [2003]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: sysctl vs /proc/sys
In article <> (at Fri, 12 Dec 2003 10:15:17 -0800), Mike Fedyk <> says:

> On Fri, Dec 12, 2003 at 09:28:32AM -0500, James Morris wrote:
> > On Fri, 12 Dec 2003, YOSHIFUJI Hideaki / [iso-2022-jp] 吉藤英明 wrote:
> >
> > > Can we get the exact previous value from /proc/sys atomicly?
> >
> > I'm not sure what you mean by this.
> Read value and modify in one op?

Yes, I meant to read old value and to set new one in one system call.
The sysctl system-call does lock_kernel, so sysctl(2) sytem-call
are serialized.

How about procfs? Are there locks between multiple read-and-write?
Since It seems user-space cannot (or even should not) let kernel
hold lock(s) during read-and-write operation, procfs cannot be
the alternative.

Do I mis-understand something?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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