History log of /linux/include/linux/timerfd.h (Results 126 – 150 of 153)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v2.6.27, v2.6.27-rc9
# f68ec0c2 03-Oct-2008 Ingo Molnar <mingo@elte.hu>

Merge commit 'v2.6.27-rc8' into x86/setup


# d6d5aeb6 02-Oct-2008 Ingo Molnar <mingo@elte.hu>

Merge commit 'v2.6.27-rc8' into genirq


Revision tags: v2.6.27-rc8
# 0b88641f 22-Sep-2008 Ingo Molnar <mingo@elte.hu>

Merge commit 'v2.6.27-rc7' into x86/debug


Revision tags: v2.6.27-rc7, v2.6.27-rc6, v2.6.27-rc5
# 470fba7e 21-Aug-2008 Ingo Molnar <mingo@elte.hu>

Merge branch 'linus' into x86/doc


Revision tags: v2.6.27-rc4
# f3efbe58 15-Aug-2008 Ingo Molnar <mingo@elte.hu>

Merge branch 'linus' into x86/gart


# 5aa37e4f 15-Aug-2008 Ingo Molnar <mingo@elte.hu>

Merge branch 'x86/core' into x86/apic


# 8d7ccaa5 14-Aug-2008 Ingo Molnar <mingo@elte.hu>

Merge commit 'v2.6.27-rc3' into x86/prototypes

Conflicts:

include/asm-x86/dma-mapping.h

Signed-off-by: Ingo Molnar <mingo@elte.hu>


Revision tags: v2.6.27-rc3
# c4c0c56a 11-Aug-2008 Ingo Molnar <mingo@elte.hu>

Merge branch 'linus' into core/rcu


# e4ddcb0a 08-Aug-2008 Dmitry Torokhov <dmitry.torokhov@gmail.com>

Merge commit 'v2.6.27-rc1' into for-linus


# af7a5356 08-Aug-2008 Ben Dooks <ben-linux@fluff.org>

Merge http://ftp.arm.linux.org.uk/pub/linux/arm/kernel/git-cur/linux-2.6-arm into for-rmk


Revision tags: v2.6.27-rc2
# 85e9ca33 31-Jul-2008 Ingo Molnar <mingo@elte.hu>

Merge branch 'linus' into timers/hpet


# bc588df7 30-Jul-2008 Ingo Molnar <mingo@elte.hu>

Merge branch 'x86/core' into x86/xsave


# 9fec6060 29-Jul-2008 Anton Vorontsov <cbouatmailru@gmail.com>

Merge branch 'master' of /home/cbou/linux-2.6

Conflicts:

drivers/power/Kconfig
drivers/power/Makefile


Revision tags: v2.6.27-rc1
# cb28a1bb 28-Jul-2008 Ingo Molnar <mingo@elte.hu>

Merge branch 'linus' into core/generic-dma-coherent

Conflicts:

arch/x86/Kconfig

Signed-off-by: Ingo Molnar <mingo@elte.hu>


# b7d0b678 28-Jul-2008 Ingo Molnar <mingo@elte.hu>

Merge branch 'linus' into x86/cpu

Conflicts:

arch/x86/kernel/cpu/intel_cacheinfo.c

Signed-off-by: Ingo Molnar <mingo@elte.hu>


# 50cb993e 27-Jul-2008 Mauro Carvalho Chehab <mchehab@infradead.org>

Merge ../linux-2.6


# eda3d8f5 27-Jul-2008 Haavard Skinnemoen <haavard.skinnemoen@atmel.com>

Merge commit 'upstream/master'


# 15d3b4a2 27-Jul-2008 David S. Miller <davem@davemloft.net>

Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6


# c3cc99ff 26-Jul-2008 Ingo Molnar <mingo@elte.hu>

Merge branch 'linus' into x86/xen


# bda307ed 26-Jul-2008 Ingo Molnar <mingo@elte.hu>

Merge branch 'linus' into x86/cleanups


# 1503af66 26-Jul-2008 Ingo Molnar <mingo@elte.hu>

Merge branch 'linus' into x86/header-guards

Conflicts:

include/asm-x86/gpio.h
include/asm-x86/ide.h

Signed-off-by: Ingo Molnar <mingo@elte.hu>


# 88bef5a4 26-Jul-2008 Ingo Molnar <mingo@elte.hu>

Merge branch 'linus' into x86/urgent


# 10a010f6 25-Jul-2008 Ingo Molnar <mingo@elte.hu>

Merge branch 'linus' into x86/x2apic

Conflicts:

drivers/pci/dmar.c

Signed-off-by: Ingo Molnar <mingo@elte.hu>


# 0e2f65ee 25-Jul-2008 Ingo Molnar <mingo@elte.hu>

Merge branch 'linus' into x86/pebs

Conflicts:

arch/x86/Kconfig.cpu
arch/x86/kernel/cpu/intel.c
arch/x86/kernel/setup_64.c

Signed-off-by: Ingo Molnar <mingo@elte.hu>


# 6b1ef0e6 24-Jul-2008 Ulrich Drepper <drepper@redhat.com>

flag parameters: NONBLOCK in timerfd_create

This patch adds support for the TFD_NONBLOCK flag to timerfd_create. The
additional changes needed are minimal.

The following test must be adjusted for

flag parameters: NONBLOCK in timerfd_create

This patch adds support for the TFD_NONBLOCK flag to timerfd_create. The
additional changes needed are minimal.

The following test must be adjusted for architectures other than x86 and
x86-64 and in case the syscall numbers changed.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#include <fcntl.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <sys/syscall.h>

#ifndef __NR_timerfd_create
# ifdef __x86_64__
# define __NR_timerfd_create 283
# elif defined __i386__
# define __NR_timerfd_create 322
# else
# error "need __NR_timerfd_create"
# endif
#endif

#define TFD_NONBLOCK O_NONBLOCK

int
main (void)
{
int fd = syscall (__NR_timerfd_create, CLOCK_REALTIME, 0);
if (fd == -1)
{
puts ("timerfd_create(0) failed");
return 1;
}
int fl = fcntl (fd, F_GETFL);
if (fl == -1)
{
puts ("fcntl failed");
return 1;
}
if (fl & O_NONBLOCK)
{
puts ("timerfd_create(0) set non-blocking mode");
return 1;
}
close (fd);

fd = syscall (__NR_timerfd_create, CLOCK_REALTIME, TFD_NONBLOCK);
if (fd == -1)
{
puts ("timerfd_create(TFD_NONBLOCK) failed");
return 1;
}
fl = fcntl (fd, F_GETFL);
if (fl == -1)
{
puts ("fcntl failed");
return 1;
}
if ((fl & O_NONBLOCK) == 0)
{
puts ("timerfd_create(TFD_NONBLOCK) set non-blocking mode");
return 1;
}
close (fd);

puts ("OK");

return 0;
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Ulrich Drepper <drepper@redhat.com>
Acked-by: Davide Libenzi <davidel@xmailserver.org>
Cc: Michael Kerrisk <mtk.manpages@googlemail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

show more ...


1234567