lkml.org 
[lkml]   [2011]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/5] Add a sysconf syscall
> You could also add a vsyscall function and have that function pull the 
> values from vvar data. It would be very fast (i.e. almost as fast as
> mmaping some data) and it would be more portable.

vvar is a global. The variable data in sysconf is per thread
(and not even per mm)

Even if you ignore the semantic problem of thread versus mm, you would
need a new writable page per process and update it any time
the rlimits and other information is updated.

On the other hand my solution is dead simple and already solves
the problem.

-Andi


\
 
 \ /
  Last update: 2011-05-16 18:11    [W:0.051 / U:57.912 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site