Re: [PATCH RESEND 1/3] printk: convert byte-buffer to variable-length record buffer

2012-11-28 Thread Michael Kerrisk
the value returned by SYSLOG_ACTION_SIZE_UNREAD is unchanged (i.e., assuming that the value returned was non-zero before SYSLOG_ACTION_SIZE_UNREAD, it is still nonzero afterward), even though a subsequent SYSLOG_ACTION_READ_CLEAR indicates that there are zero bytes to read. (All tests conducted with (r)s

Re: [RFC 4/4] mm: Enhance per process reclaim

2013-04-02 Thread Michael Kerrisk
Minchan, On Mon, Mar 25, 2013 at 7:21 AM, Minchan Kim wrote: > > Some pages could be shared by several processes. (ex, libc) > In case of that, it's too bad to reclaim them from the beginnig. > > This patch causes VM to keep them on memory until last task > try to reclaim them so shared pages wil

Re: [RFC 1/4] mm: Per process reclaim

2013-04-03 Thread Michael Kerrisk
Hello Minchan, On Mon, Mar 25, 2013 at 7:21 AM, Minchan Kim wrote: > These day, there are many platforms avaiable in the embedded market > and they are smarter than kernel which has very limited information > about working set so they want to involve memory management more heavily > like android'

Re: [RFC 1/4] mm: Per process reclaim

2013-04-03 Thread Michael Kerrisk
Hello Minchan, On Mon, Mar 25, 2013 at 7:21 AM, Minchan Kim wrote: > These day, there are many platforms avaiable in the embedded market > and they are smarter than kernel which has very limited information > about working set so they want to involve memory management more heavily > like android'

Re: [RFC 1/4] mm: Per process reclaim

2013-04-03 Thread Michael Kerrisk
> However, the interface is a quite blunt instrument. Would there be any > virtue in extending it so that an address range could be written to Here, I did mean to say "an *optional* address range. Thanks, Michael -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the b

[patch] cgroups: trivial fixes for Documentation/cgroups/cgroups.txt

2012-09-11 Thread Michael Kerrisk
Obviously some more significant fixes could be made to the document, but some of those may not be in the "obviously correct" category. Please apply. Signed-off-by: Michael Kerrisk diff --git a/Documentation/cgroups/cgroups.txt b/Documentation/cgroups/cgroups.txt index 4a0b64c..

[patch] memcg: trivial fixes for Documentation/cgroups/memory.txt

2012-09-11 Thread Michael Kerrisk
Obviously some more significant fixes need to be made to the document, but some of those may not be in the "obvious correct" category. Please apply. Signed-off-by: Michael Kerrisk diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt index 4372e6b..

man-pages-2.77 is released

2008-01-31 Thread Michael Kerrisk
i-bin/bugreport.cgi?bug=461100. -- Michael Kerrisk Maintainer of the Linux man-pages project http://www.kernel.org/doc/man-pages/ Want to report a man-pages bug? Look here: http://www.kernel.org/doc/man-pages/reporting_bugs.html -- To unsubscribe from this list: send the line "unsubscribe li

man-pages-2.78 is released

2008-02-15 Thread Michael Kerrisk
s the signalfd() system call, new in 2.6.22. Changes to individual pages --- open.2 Greg Banks Greatly expand the detail on O_DIRECT. -- Michael Kerrisk Maintainer of the Linux man-pages project http://www.kernel.org/doc/man-pages/ Want to report a man-pages bug?

Re: [PATCH 0/3] Volatile Ranges (v7) & Lots of words

2012-11-02 Thread Michael Kerrisk
John, A question at on one point: On Wed, Oct 3, 2012 at 12:38 AM, John Stultz wrote: > On 10/02/2012 12:39 AM, NeilBrown wrote: [...] >> The SIGBUS interface could have some merit if it really reduces >> overhead. I >> worry about app bugs that could result from the non-deterministic >>

Re: [PATCH 0/3] Volatile Ranges (v7) & Lots of words

2012-11-03 Thread Michael Kerrisk
ranges. Here's one possible argument against it (Jake Edge alerted me to this). If an application marked adjacent ranges using separate system calls, that might be an indication that the application intends to to have different access patterns against the two ranges: one frequent, the other rar

Re: [PATCH 00/13] UAPI header file split

2012-07-26 Thread Michael Kerrisk
diff.$$ if test $(cat /tmp/cdiff.$$ | wc -l) -ne 0; then echo "====" $r_kapi $uapi cat /tmp/cdiff.$$ fi done -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Author of "The Linux Programming Interface", http://blog.man7.or

Re: [PATCH 00/13] UAPI header file split

2012-07-26 Thread Michael Kerrisk
On Thu, Jul 26, 2012 at 12:46 PM, David Howells wrote: > > Oh, and thanks for the write up! You're welcome. You may want to respond to comments that appear there, such as this one https://lwn.net/Articles/508203/ (You can sign up to receive comments on a specific article by mail)

Re: [PATCH 00/13] UAPI header file split

2012-07-26 Thread Michael Kerrisk
On Thu, Jul 26, 2012 at 4:32 PM, David Howells wrote: > Michael Kerrisk wrote: > >> I've not checked whether any of the below are fixed in the adjustments >> that you made in the last 20 hours (though it looks like at least some >> of them are not), but a little scri

Re: [PATCH 00/13] UAPI header file split

2012-07-27 Thread Michael Kerrisk
On Thu, Jul 26, 2012 at 12:46 PM, David Howells wrote: > Michael Kerrisk wrote: > >> >> >> 3. HEADER COMMENTS NOT RETAINED IN KAPI FILES >> > >> > How about the attached changes? This is a delta to the disintegrate >> > markers >>

Re: [PATCH v2] socket.7: add description for SO_BUSY_POLL

2013-07-10 Thread Michael Kerrisk
On 07/10/13 16:18, Eliezer Tamir wrote: > Add description for the SO_BUSY_POLL socket option to the socket(7) manpage. > > v2 > fixed typos reported by Rasmus Villemoes Eliezer, What's the status of this feature. A quick grep seems to show that the feature is not yet in mainline. What is the pla

Re: [PATCH 1/4] module: add syscall to load module from fd

2012-10-09 Thread Michael Kerrisk
Kees, > +SYSCALL_DEFINE2(finit_module, int, fd, const char __user *, uargs) Given the repeated experience of the last few years--new system calls that are in essence revisions of older system calls with a 'flags' argument bolted on to allow more flexible behavior (e.g., accept4(), dup3(), utimens

Re: [PATCH] MM: Support more pagesizes for MAP_HUGETLB/SHM_HUGETLB v6

2012-10-22 Thread Michael Kerrisk
_HUGE_SHIFT) Maybe I am missing something obvious, but does this not conflict with include/uapi/asm-generic/mman-common.h: #ifdef CONFIG_MMAP_ALLOW_UNINITIALIZED # define MAP_UNINITIALIZED 0x400 ... 0x4000000 == (1 << 26) ? Thanks, Michael -- Michael Kerrisk Linux man-pages maintai

Re: [PATCH 1/4] module: add syscall to load module from fd

2012-12-20 Thread Michael Kerrisk
Hi Rusty, On Mon, Oct 22, 2012 at 9:39 AM, Rusty Russell wrote: > "Michael Kerrisk (man-pages)" writes: >>> FIX: add flags arg to sys_finit_module() >>> >>> Thanks to Michael Kerrisk for keeping us honest. >> >> w00t! Thanks, Rusty ;-). >&

Re: [PATCH 3/4] signalfd: add ability to choose a private or shared queue

2012-12-24 Thread Michael Kerrisk
lexander Viro > Cc: "Paul E. McKenney" > Cc: David Howells > Cc: Thomas Gleixner > Cc: Oleg Nesterov > Cc: Michael Kerrisk > Cc: Pavel Emelyanov > CC: Cyrill Gorcunov > Signed-off-by: Andrey Vagin > --- > fs/signalfd.c | 25 +

Re: [PATCH 0/4] signalfd: a kernel interface for dumping/restoring pending signals

2012-12-24 Thread Michael Kerrisk
ov > CC: Cyrill Gorcunov > > -- > 1.7.11.7 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html --

Re: [PATCH 2/4] signal: add a helper for dequeuing signals from a specified queue

2012-12-24 Thread Michael Kerrisk
rn the element to the caller, which is > * expected to free it. > * > + * @queue: dequeue from a private queue, if a value is not positive if a value is not positive ==> if value is nonpositive > + * dequeue from a shared queue, if a value if not negative if a value is not

[PATCH] Correct description of SwapFree in Documentation/filesystems/proc.txt

2012-11-15 Thread Michael Kerrisk
/proc.txt since at least 2.6.0. Anyway, I believe that the patch below fixes things. Signed-off-by: Michael Kerrisk diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt index a1793d6..cf4260f 100644 --- a/Documentation/filesystems/proc.txt +++ b/Documentation

Re: [PATCH 1/3] ptrace.2: place GETSIGINFO and SETSIGINFO near each other

2013-07-18 Thread Michael Kerrisk
Thanks Andrey. Applied. M On 07/16/13 10:19, Andrey Vagin wrote: > Signed-off-by: Andrey Vagin > --- > man2/ptrace.2 | 24 > 1 file changed, 12 insertions(+), 12 deletions(-) > > diff --git a/man2/ptrace.2 b/man2/ptrace.2 > index 0d77e3f..5fcac2b 100644 > --- a/man2/p

Re: [PATCH] open(2): document O_PATH

2013-07-20 Thread Michael Kerrisk
On 07/20/13 13:40, Al Viro wrote: > On Thu, Mar 14, 2013 at 10:35:59AM +0100, Michael Kerrisk (man-pages) wrote: >> Hello Al et al, >> >> Documenting O_PATH fell by the wayside last year >> (http://thread.gmane.org/gmane.linux.man/2790) as I got distracted >> with

Re: [RESEND PATCH 4/4 v3] mm: fix possible incorrect return value of move_pages() syscall

2012-07-31 Thread Michael Kerrisk
privilege. .SH "RETURN VALUE" On success .BR migrate_pages () -returns zero. +returns the number of pages that cold not be moved +(i.e., a return of zero means that all pages were successfully moved). On error, it returns \-1, and sets .I errno to indicate the error. -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Author of "The Linux Programming Interface", http://blog.man7.org/ migrate_pages.2 Description: Binary data

Re: [RESEND PATCH 4/4 v3] mm: fix possible incorrect return value of move_pages() syscall

2012-08-01 Thread Michael Kerrisk
On Wed, Aug 1, 2012 at 8:00 PM, Christoph Lameter wrote: > On Wed, 1 Aug 2012, Michael Kerrisk wrote: > >> Is the patch below acceptable? (I've attached the complete page as well.) > > Yes looks good. Thanks for checking it! >> See you in San Diego (?), > >

Re: [PATCH 00/13] UAPI header file split

2012-07-24 Thread Michael Kerrisk
d here > are from the base of that branch up to the uapi-prep tag; the automated split > follows thereafter to the uapi-post-split tag. In the uapi-split branch, there are now 44 empty Kbuild files. Was that intended? Or, should these files rather be removed by your patches? Thanks, Michael

Re: [PATCH 00/13] UAPI header file split

2012-07-25 Thread Michael Kerrisk
On Tue, Jul 24, 2012 at 3:19 PM, David Howells wrote: > Michael Kerrisk wrote: > >> In the uapi-split branch, there are now 44 empty Kbuild files. Was >> that intended? Or, should these files rather be removed by your >> patches? > > To be removed by a later patch,

Re: [PATCH 00/13] UAPI header file split

2012-07-25 Thread Michael Kerrisk
On Wed, Jul 25, 2012 at 12:23 PM, David Howells wrote: > Michael Kerrisk wrote: > >> A few other points that I noticed now... >> >> 1. GIT HISTORY COULD BE RETAINED IN SOME CASES >> ... >> But, as currently scripted the "new" uapi header file doe

ABI change for setitimer(2) [in feature-removal-schedule.txt]

2012-09-29 Thread Michael Kerrisk
an bluntly making the change and seeing if anybody squawks because something breaks. If this change _had_ been instantly executed in 3.4, then we'd have missed a chance to bring greater consistency across systems (here, I assume that having added the EFAULT behavior, there'd probably be resist

Re: ABI change for setitimer(2) [in feature-removal-schedule.txt]

2012-10-01 Thread Michael Kerrisk
On Sun, Sep 30, 2012 at 7:51 PM, Linus Torvalds wrote: > On Sat, Sep 29, 2012 at 11:30 PM, Michael Kerrisk > wrote: >> >>> I think the whole "let's deprecate this six months into the future" is >>> unnecessary. Yes, it may well be worth doing for

[patch] Remove proposed ABI change for setitimer(2)

2012-10-01 Thread Michael Kerrisk
timer(..., NULL, &ovalue) == getitimer(..., &ovalue) The sensible thing is no change at all. This patch removes the scheduled change from feature-removal-schedule.txt. Signed-off-by: Michael Kerrisk --- diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/fe

Re: [PATCH 07/19] mm/mpol: Add MPOL_MF_NOOP

2012-10-01 Thread Michael Kerrisk
will walk the specified > range and unmap eligible pages so that they will be migrated on > next touch. This patch is mistitled. The new flag is MPOL_NOOP. That made it difficult to find the commit in linux-next. Does it make sense to fix the patch title before this hits mainline? Thanks, Micha

Re: [PATCH] RUSAGE_THREAD

2008-02-22 Thread Michael Kerrisk
Christoph. > > Thanks, > Sripathi. > > This adds the RUSAGE_THREAD option for the getrusage system call. Sripathi, Could you write some small piece of text for the getrusage.2 man page that describes the intended behavior of RUSAGE_THREAD? Thanks, Michael -- Michael Kerrisk Mai

Re: epoll design problems with common fork/exec patterns

2008-02-26 Thread Michael Kerrisk
l set. This can be a useful technique for filtering events, if the duplicate file descrip- tors are registered with different events masks. Seem okay Davide? Cheers, Michael PS I've trimmed the part of this thread about Q6/A6, since I dealt with that in ano

Re: epoll and shared fd's

2008-02-26 Thread Michael Kerrisk
Following up after quite some time: Davide Libenzi wrote: > On Sat, 26 Jan 2008, Michael Kerrisk wrote: > >> On Jan 25, 2008 12:57 AM, Davide Libenzi <[EMAIL PROTECTED]> wrote: >>> On Thu, 24 Jan 2008, Pierre Habouzit wrote: >>> >>>> On Fri, Jan 18

Re: epoll and shared fd's

2008-02-26 Thread Michael Kerrisk
On Tue, Feb 26, 2008 at 8:04 PM, Davide Libenzi <[EMAIL PROTECTED]> wrote: > > On Tue, 26 Feb 2008, Michael Kerrisk wrote: > > > Following up after quite some time: > > > > Davide Libenzi wrote: > > > On Sat, 26 Jan 2008, Michael Kerrisk wrote: > > &

Re: good book on kernel

2000-10-05 Thread Michael Kerrisk
O'Reilly have just released "Understanding the Linux Kernel" http://www.ora.com/catalog/linuxkernel/ Cheers Michael - Original Message - From: RAJESH BALAN <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 05, 2000 7:29 PM Subject: good book on kernel > Hi, > Iam in

pselect() modifying timeout

2005-08-05 Thread Michael Kerrisk
Hello David, By the way, looking at the comments to the last version of the pselect()/ppoll()patch, I see that the treatment of the timeout argument is made dependent on the personality. http://marc.theaimsgroup.com/?l=linux-kernel&m=111883591220436&w=2 I'm not sure that this is a good idea;

Re: Add pselect, ppoll system calls.

2005-08-05 Thread Michael Kerrisk
ect), and that *did* show the signal handler being called. Also, I now have a test result on Solaris 10 for pselect(), and it shows the signal handler is called in this case.) Cheers, Michael /* t_pselect.c Michael Kerrisk, Aug 2005 */ #if defined(__linux__) && !defined(NO_SYSCALL) #defin

Re: pselect() modifying timeout

2005-08-05 Thread Michael Kerrisk
> Michael Kerrisk wrote: > > Please consider making Linux pselect() conform to POSIX on this > > point. > > There is no question the implementation will conform. But this not > dependent on changing the syscall interface. We deliberately decided to > not require

Re: Signal handling possibly wrong

2005-08-10 Thread Michael Kerrisk
he flag was known as SA_NOMASK). I'll get something into the manual pages under BUGS. Cheers, Michael -- Michael Kerrisk maintainer of Linux man pages Sections 2, 3, 4, 5, and 7 Want to help with man page maintenance? Grab the latest tarball at ftp://ftp.win.tue.nl/pub/linux-local/manpa

Re: fcntl(F GETLEASE) semantics??

2005-08-11 Thread Michael Kerrisk
> Von: Peter Chubb <[EMAIL PROTECTED]> > > > "Trond" == Trond Myklebust <[EMAIL PROTECTED]> writes: > > Trond> to den 11.08.2005 Klokka 09:48 (+1000) skreiv Peter Chubb: > >> Hi, The LTP test fcntl23 is failing. It does, in essence, fd = > >> open(xxx, O_RDWR|O_CREAT, 0777); if (fcntl(fd, F_

Re: fcntl(F GETLEASE) semantics??

2005-08-11 Thread Michael Kerrisk
> Von: Trond Myklebust <[EMAIL PROTECTED]> > to den 11.08.2005 Klokka 10:14 (+0200) skreiv Michael Kerrisk: > > > No. The behavior in Linux recently, and arbitrarily (IMO) changed: > > The change was NOT arbitrary. Okay -- I'm puzzled. Two of the people that I

Re: fcntl(F GETLEASE) semantics??

2005-08-11 Thread Michael Kerrisk
Trond, > Von: Trond Myklebust <[EMAIL PROTECTED]> > > to den 11.08.2005 Klokka 14:27 (+0200) skreiv Michael Kerrisk: > > And I pointed out that the existing behaviour (which is > > still current in 2.6.13-rc4) is inconsistent: > > > > http://

Re: fcntl(F GETLEASE) semantics??

2005-08-11 Thread Michael Kerrisk
Trond, > to den 11.08.2005 Klokka 15:22 (+0200) skreiv Michael Kerrisk: > > > As noted already, I don't know much of CIFS and SAMBA. > > But are you saying that it is sensible and consistent that > > "a process can open a file read-write, and can't place a

Broke nice range for RLIMIT NICE

2005-07-28 Thread Michael Kerrisk
racks here in a wrapper for getrlimit(), but it seems more sensible to make RLIMIT_NICE consistent with [gs]etpriority() -- i.e., change the RLIMIT_NICE interface in 2.6.13 before it sees wide use in userland. What do you think? Cheers, Michael -- Michael Kerrisk maintainer of Linux man pages S

Re: Broke nice range for RLIMIT NICE

2005-07-29 Thread Michael Kerrisk
0 -0700 > +++ l/kernel/sched.c 2005-07-28 22:55:54.0 -0700 > @@ -3231,8 +3231,8 @@ EXPORT_SYMBOL(set_user_nice); > */ > int can_nice(const task_t *p, const int nice) > { > - /* convert nice value [19,-20] to rlimit style value [0,39] */ > - int nice_rlim =

Re: Broke nice range for RLIMIT NICE

2005-07-29 Thread Michael Kerrisk
P, preferably in 2.6.13. Yes, as noted in my earlier message -- at the moment RLIMIT_NICE still isn't in the current glibc snapshot... Cheers, Michael -- Michael Kerrisk maintainer of Linux man pages Sections 2, 3, 4, 5, and 7 Want to help with man page maintenance? Grab the latest t

[PATCH] MAINTAINERS record -- MAN-PAGES

2005-07-29 Thread Michael Kerrisk
:59.0 +0200 +++ MAINTAINERS.new 2005-07-29 13:34:46.0 +0200 @@ -1478,6 +1478,12 @@ M: [EMAIL PROTECTED] S: Odd Fixes +MAN-PAGES: MANUAL PAGES FOR LINUX -- Sections 2, 3, 4, 5, and 7 +P: Michael Kerrisk +M: [EMAIL PROTECTED] +W: ftp://ftp.kernel.org/pub/linux/docs/man

Re: Broke nice range for RLIMIT NICE

2005-07-29 Thread Michael Kerrisk
> On 29 Jul 2005, Michael Kerrisk stated: > > Yes, as noted in my earlier message -- at the moment RLIMIT_NICE > > still isn't in the current glibc snapshot... > > According to traffic on libc-hacker, Ulrich committed it on Jun 20 > (along with RLIMIT_RTPRIO suppo

Re: Add pselect, ppoll system calls.

2005-08-25 Thread Michael Kerrisk
David, > On Fri, 2005-08-05 at 14:49 +0200, Michael Kerrisk wrote: > > If I change your program to do something like the above, I also > > do not see a message from the handler -- i.e., it is not being > > called, and I'm pretty sure it should be. > > Hm, yes. Wha

man-pages-2.75 and man-pages-fr-2.75.0 are released

2008-01-08 Thread Michael Kerrisk
Gidday, The Linux man-pages maintainer, Michael Kerrisk, and the maintainer of the French translation of man-pages, Alain Portal, proudly announce the simultaneous release (*) of man-pages-2.75 in English original and French translation. The English version: man-pages-2.75.tar.gz - man

Tesing of / bugs in new timerfd API

2007-12-13 Thread Michael Kerrisk
Davide, Andrew, I applied Davide's v3 patchset (sent into LKML on 25 Nov) against 2.4.24-rc3, and did various tests (all on x86). Several tests were done using the program at the foot of this mail. Various others were done by cobbling together bits of code that I haven't included here. In cover

Re: Tesing of / bugs in new timerfd API

2007-12-13 Thread Michael Kerrisk
Hi Davide, On Dec 13, 2007 10:49 PM, Davide Libenzi <[EMAIL PROTECTED]> wrote: > On Thu, 13 Dec 2007, Michael Kerrisk wrote: > > > Davide, Andrew, > > > > I applied Davide's v3 patchset (sent into LKML on 25 Nov) against > > 2.4.24-rc3, and did various te

man-pages-2.71 and man-pages-2.72 are released

2007-12-14 Thread Michael Kerrisk
Global changes -- abort.3 mtk, after a note by Alex Tuninga A fairly significant rewrite to clarify operation of abort(). -- Michael Kerrisk Maintainer of the Linux man-pages project http://www.kernel.org/doc/man-pages/ Want to report a man-pages bug? Look

Re: Man page for revised timerfd API

2007-10-02 Thread Michael Kerrisk
Davide Libenzi wrote: > On Thu, 27 Sep 2007, Michael Kerrisk wrote: > >> Davide, >> >> A further question: what is the expected behavior in the >> following scenario: >> >> 1. Create a timerfd and arm it. >> 2. Wait until M timer expirations have

Re: Man page for revised timerfd API

2007-10-04 Thread Michael Kerrisk
Matti, Matti Aarnio wrote: > On Wed, Oct 03, 2007 at 08:50:09AM +0200, Michael Kerrisk wrote: >> Davide Libenzi wrote: >>> On Thu, 27 Sep 2007, Michael Kerrisk wrote: >>> >>>> Davide, >>>> >>>> A further question: what is the expected

man-pages-2.66 is released

2007-10-08 Thread Michael Kerrisk
Gidday, Some news: the list [EMAIL PROTECTED] has been created for the purpose of discussing Linux man page bugs, patches, and maintenance. To subscribe, send a message to [EMAIL PROTECTED], with the body: subscribe linux-man Back to the news as usual... I recently released man-pages-2.66.

Re: [patch 0/2] x86, ptrace: support for branch trace store(BTS)

2007-11-30 Thread Michael Kerrisk
[...] > Please cc Michael Kerrisk <[EMAIL PROTECTED]> on future versions of > these patches. Yes, please. Buit note that my official address nowadays is [EMAIL PROTECTED] Chers, Michael -- Michael Kerrisk Maintainer of the Linux man-pages project http://www.kernel.org/doc/man

Re: [patch 0/2] x86, ptrace: support for branch trace store(BTS)

2007-11-30 Thread Michael Kerrisk
On Nov 30, 2007 5:04 PM, Michael Kerrisk <[EMAIL PROTECTED]> wrote: > [...] > > > Please cc Michael Kerrisk <[EMAIL PROTECTED]> on future versions of > > these patches. > > Yes, please. Buit note that my official address nowadays is > > [EMAIL PR

man-pages-2.69 is released

2007-12-03 Thread Michael Kerrisk
. spufs.7 Jeremy Kerr Various updates and improvements. -- Michael Kerrisk Maintainer of the Linux man-pages project (Sections 2, 3, 4, 5, and 7 of the Linux man pages) http://www.kernel.org/doc/man-pages/ -- To unsubscribe from this list: send the line "unsubscribe linux-kerne

man-pages-2.70 is released

2007-12-06 Thread Michael Kerrisk
maintenance is supported by Google, as a Google engineer 20% project.) -- Michael Kerrisk Maintainer of the Linux man-pages project http://www.kernel.org/doc/man-pages/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More

man-pages-2.68 is released

2007-11-21 Thread Michael Kerrisk
Gidday, Repeating some old news: 1) As from now, my address as man-pages maintainer has changed to [EMAIL PROTECTED] (Mail to the old address will continue to work for a while, but eventually I will close that account.) 2) The list [EMAIL PROTECTED] has been created for the purpose

Where is the new timerfd?

2007-11-22 Thread Michael Kerrisk
Hey Davide, Where is the new timerfd API. In 2.6.24-rc3, I see the *old* API... Cheers, Michael - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

Re: Where is the new timerfd?

2007-11-22 Thread Michael Kerrisk
On Nov 22, 2007 6:34 PM, Davide Libenzi <[EMAIL PROTECTED]> wrote: > On Thu, 22 Nov 2007, Michael Kerrisk wrote: > > > Hey Davide, > > > > Where is the new timerfd API. In 2.6.24-rc3, I see the *old* API... > > Maybe Andrew stuffed the turkey with it? :) It

Re: [patch 2/4] Timerfd v2 - new timerfd API

2007-11-23 Thread Michael Kerrisk
Hi Davide, [...] > +asmlinkage long sys_timerfd_create(int clockid, int flags) > { > - int error; > + int error, ufd; > struct timerfd_ctx *ctx; > struct file *file; > struct inode *inode; > - struct itimerspec ktmr; > - > - if (copy_from_user(&ktmr, utmr, sizeo

Re: Where is the new timerfd?

2007-11-23 Thread Michael Kerrisk
On Nov 23, 2007 7:38 PM, Ulrich Drepper <[EMAIL PROTECTED]> wrote: > On Nov 23, 2007 9:29 AM, Davide Libenzi <[EMAIL PROTECTED]> wrote: > > Yes, it's disabled, and yes, I'll repost today ... > > I haven't seen the patch and don't feel like searching. So I say it > here: please mak sure you add a f

Re: Where is the new timerfd?

2007-11-23 Thread Michael Kerrisk
On 11/23/07, Andrew Morton <[EMAIL PROTECTED]> wrote: > On Thu, 22 Nov 2007 16:35:38 -0800 (PST) Davide Libenzi > <[EMAIL PROTECTED]> wrote: > > > On Thu, 22 Nov 2007, Andrew Morton wrote: [...] > > > Last I recall, we removed the API for 2.6.23 because we intended to do a > > > different interface

Re: revoke man page

2007-11-26 Thread Michael Kerrisk
[+linux-kernel] On Nov 26, 2007 9:13 PM, Michael Kerrisk <[EMAIL PROTECTED]> wrote: > Maybe I missed it. Did someone write a man-pages for revoke(), which > I assume is heading towards mainline before long? - To unsubscribe from this list: send the line "unsubscribe linux-kerne

man-pages-2.76 is released

2008-01-14 Thread Michael Kerrisk
dom.4 mtk, after a report by Daniel Kahn Gilmor Add 2.6 details for /proc/sys/kernel/random/poolsize. as per http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=459232. -- Michael Kerrisk Maintainer of the Linux man-pages project http://www.kernel.org/doc/man-pages/ Want to rep

Re: Tesing of / bugs in new timerfd API

2007-12-14 Thread Michael Kerrisk
Hi Davide, Davide Libenzi wrote: > On Thu, 13 Dec 2007, Michael Kerrisk wrote: > >>>> BUG 2: >>>> The last sentence does not match the implementation. >>>> (Nor is it consistent with the behavior of POSIX timers. >>>> And I *think*

man-pages-2.73 is released

2007-12-14 Thread Michael Kerrisk
from that, some work has been done to improve the HTML used for the online pages (http://www.kernel.org/doc/man-pages/online_pages.html ). Cheers, Michael (man-pages maintenance is supported by Google, as a Google engineer 20% project.) -- Michael Kerrisk Maintainer of the Linux man-pages pr

Re: Tesing of / bugs in new timerfd API

2007-12-17 Thread Michael Kerrisk
Hi Davide, On 12/16/07, Davide Libenzi <[EMAIL PROTECTED]> wrote: > On Fri, 14 Dec 2007, Michael Kerrisk wrote: > > > You snipped my example that demonstrated the problem. Both of the > > following runs create a timer that expires 10 seconds from "now", but

Re: compat_sys_times() bogus until jiffies >= 0.

2007-12-20 Thread Michael Kerrisk
problem can occur when the return value wraps passed the maximum value that can be stored in clockid_t. Look okay to you folks? Cheers, Michael -- Michael Kerrisk Maintainer of the Linux man-pages project http://www.kernel.org/doc/man-pages/ Want to report a man-pages bu

man-pages-2.74 is released

2007-12-20 Thread Michael Kerrisk
Gidday I've released man-pages-2.74. This release is now available for download at: http://www.kernel.org/pub/linux/docs/man-pages or ftp://ftp.kernel.org/pub/linux/docs/man-pages Changes in this release can be seen at http://www.kernel.org/doc/man-pages/changelog.html#release_2.74 A su

Re: epoll and shared fd's

2008-01-25 Thread Michael Kerrisk
efore > > > > the close, which I now do, but costs me a syscall where I wanted to > > > > spare one :| > > > > > > For epoll, a close is when the kernel file* is released (that is, when all > > > its instances are gone). > > > We could put a spe

Re: [PATCH] RUSAGE_THREAD

2008-01-25 Thread Michael Kerrisk
On Jan 19, 2008 2:14 AM, Roland McGrath <[EMAIL PROTECTED]> wrote: > > This adds the RUSAGE_THREAD option for the getrusage system call. > Solaris calls this RUSAGE_LWP and uses the same value (1). > That name is not a natural one for Linux, but we keep it as an alias. Hey Roland, Would you pleas

New clone(2) and wait(2) man pages for review

2001-06-26 Thread Michael Kerrisk
cause an uncle cannot wait on his nephews. In some other Unix-like systems, where multiple threads are implemented as belonging to a single process, thread A can wait on any processes forked by sibling thread B; you will have to rewrite any code that makes this

Re: [patch 2/2] cpusets: add interleave_over_allowed option

2007-10-26 Thread Michael Kerrisk
have with my employer, I > see I have a task that is now over a year old, still unfinished, to > provide man pages for cpusets to Michael Kerrisk" <[EMAIL PROTECTED]> Yes, it would be great to have those pages. Is there anything I can do to assist? Cheers, Michael PS Note my

Re: [patch 2/2] cpusets: add interleave_over_allowed option

2007-10-26 Thread Michael Kerrisk
On 10/26/07, Paul Jackson <[EMAIL PROTECTED]> wrote: > Michael wrote: > > PS Note my new addres for man-apges: [EMAIL PROTECTED] > > Noted. > > > Is there anything I can do to assist? > > Got any spare round tuit's ;)? I ran out quite some time ago unfortunately. Cheers, Michael - To unsubscribe

man-pages-2.63 is released

2007-07-20 Thread Michael Kerrisk
gnals. Add SEE ALSO reference to sgetmask.2. -- Michael Kerrisk maintainer of Linux man pages Sections 2, 3, 4, 5, and 7 Want to help with man page maintenance? Grab the latest tarball at http://www.kernel.org/pub/linux/docs/manpages/ read the HOWTOHELP file and grep the source files for &#

fallocate() man page

2007-07-22 Thread Michael Kerrisk
Amit, I've taken the page that you sent and made various minor formatting and wording fixes. I've also added various FIXMEs to the page. Some of these ("FIXME .") are things that I need to check up later. Some others are questions for which I need input from you, David, or someone else with the

Problems with timerfd()

2007-07-22 Thread Michael Kerrisk
Andrew, The timerfd() syscall went into 2.6.22. While writing the man page for this syscall I've found some notable limitations of the interface, and I am wondering whether you and Linus would consider having this interface fixed for 2.6.23. On the one hand, these fixes would be an ABI change, w

Re: Problems with timerfd()

2007-07-23 Thread Michael Kerrisk
ication is not checking the return from read(), then its 8-byte buffer will not be filled -- the contents of the last 4 bytes will be undefined, so the u64 value as a whole will be junk. Cheers, Michael -- Michael Kerrisk maintainer of Linux man pages Sections 2, 3, 4, 5, and 7 Want to help with

Re: Problems with timerfd()

2007-07-24 Thread Michael Kerrisk
Ray, > On 7/22/07, Michael Kerrisk <[EMAIL PROTECTED]> wrote: > > Problem 1 > > - > > > > The value returned by read(2)ing from a timerfd file descriptor is > > the > > number of timer overruns. In 2.6.22, this value is 4 bytes, limiting

Re: Problems with timerfd()

2007-07-24 Thread Michael Kerrisk
's the other problems with the interface that bother me more (inability to retrieve previous setting when changing the timer; inability to retrieve time until next expiration without changing the current setting). Cheers, Michael -- Michael Kerrisk maintainer of Linux man pages Sections 2, 3,

Re: [PATCH] Revised timerfd() interface

2007-09-04 Thread Michael Kerrisk
e(), timer_settime(), timer_gettime()). Or (if possible, and even better) timerfd() integrated with POSIX timers. Then we have a good API for the coming decades. I'm prepared to help out with patches (for what my help is worth ;-)). Cheers, Michael -- Michael Kerrisk maintainer of Linux man

Re: [PATCH] Revised timerfd() interface

2007-09-04 Thread Michael Kerrisk
t; > > > I'd have thought that the existing stuff would be near-useless without > the capabilities which you describe? Not useless, but certainly less functional than it can/should be (and with not too much effort on the kernel implementation side). Cheers, Michael -- Mich

Re: [PATCH] Revised timerfd() interface

2007-09-04 Thread Michael Kerrisk
the functionality of the existing POSIX timers API. > and in terms of kernel code footprint. Not sure what your concern is here. The total amount of new code for all of these options is pretty small. Cheers, Michael -- Michael Kerrisk maintainer of Linux man pages Sections 2, 3, 4,

Re: [PATCH] Revised timerfd() interface

2007-09-04 Thread Michael Kerrisk
off to an application: that library may want to modify the timer settings without having to create a new file descriptor (the app mey not be able to be told about the new fd). Your argument just doesn't hold, AFAICS. Cheers, Michael -- Michael Kerrisk maintainer of Linux man pages Section

Re: [PATCH] Revised timerfd() interface

2007-09-04 Thread Michael Kerrisk
s is on us to explain why they got this point wrong. And it is not merely POSIX that did things things in the way I've described: so did the earlier setitimer()/getitimer(). Cheers, Michael -- Michael Kerrisk maintainer of Linux man pages Sections 2, 3, 4, 5, and 7 Want to help with man page

timerfd redux

2007-09-05 Thread Michael Kerrisk
[Was: Re: [PATCH] Revised timerfd() interface] > Michael, could you please refresh our memories with a brief, > from-scratch summary of what the current interface is, followed > by a summary of what you believe to be the shortcomings to be? Andrew, I'll break this up into parts: 1. the existin

Re: [PATCH] Revised timerfd() interface

2007-09-05 Thread Michael Kerrisk
y a timer's settings at the same timer as another thread is select()ing on it? The first thread can't do this by creating a new timerfd timer, since it wants to affect the select() in the other thread? Cheers, Michael -- Michael Kerrisk maintainer of Linux man pages Sections 2, 3

O_CLOEXEC / MSG_CMSG_CLOEXEC documentation

2007-09-05 Thread Michael Kerrisk
ld: fd = %d\n", fd); > if (fcntl (fd, F_GETFD) == 0 || errno != EBADF) > { > puts ("file descriptor valid in child"); > return 1; > } > return 0; > } > > fd = open ("/proc/self/exe", O_RDONLY | O_CLOEXEC)

Re: execve manpage changes

2007-09-05 Thread Michael Kerrisk
stack space.) Architectures with no memory management unit are excepted: they maintain the pre-2.6.23 limit. Cheers, Michael -- Michael Kerrisk maintainer of Linux man pages Sections 2, 3, 4, 5, and 7 Want to help with man page maintenance? Grab the latest tarball at h

Re: [PATCH] Revised timerfd() interface

2007-09-05 Thread Michael Kerrisk
ed > whenever the new timer setting expires. We are going in circles here. I think you are missing my point. Consider the following [[ Thread A: calls library function which creates a timerfd file descriptor. Thread B: calls select() on the timerfd file descriptor. Thread A: calls library

Re: [PATCH] Revised timerfd() interface

2007-09-05 Thread Michael Kerrisk
ts); > th->clockid = clockid; > th->ts = *ts; > return 0; > } > > Wrap the get/set with a mutex in case you plan to shoot yourself in a > foot by doing get/set from multiple threads ;) > So, once again: > > - I sincerly doubt the above is common u

Re: O_CLOEXEC / MSG_CMSG_CLOEXEC documentation

2007-09-06 Thread Michael Kerrisk
Ulrich, > On 9/5/07, Michael Kerrisk <[EMAIL PROTECTED]> wrote: > > O_CLOEXEC (Since Linux 2.6.23) > > Enable the close-on-exec flag for the new file > > descriptor. This is useful in multithreaded programs > > since u

  1   2   3   4   5   6   7   8   9   10   >