Messages in this thread | | | From | "H. Peter Anvin" <> | Subject | Re: sysctl vs /proc/sys | Date | 12 Dec 2003 17:31:27 -0800 |
| |
Followup to: <20031213.094210.107050343.yoshfuji@linux-ipv6.org> By author: YOSHIFUJI Hideaki / =?iso-2022-jp?B?GyRCNUhGIzFRTEAbKEI=?= <yoshfuji@linux-ipv6.org> In newsgroup: linux.dev.kernel > > 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. >
Dumb question... what do you need this for? sysctl is mostly used to initialization-time stuff... In most cases you can use flock(), probably, although that is advisory and not compulsory.
-hpa -- <hpa@transmeta.com> at work, <hpa@zytor.com> in private! If you send me mail in HTML format I will assume it's spam. "Unix gives you enough rope to shoot yourself in the foot." Architectures needed: ia64 m68k mips64 ppc ppc64 s390 s390x sh v850 x86-64 - 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/
| |