lkml.org 
[lkml]   [2014]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 3/3] timerfd: Implement write method
On Tue, 29 Apr 2014, Cyrill Gorcunov wrote:
> +
> +static ssize_t timerfd_write(struct file *file, const char __user *buf,
> + size_t count, loff_t *ppos)
> +{
> + struct timerfd_ctx *ctx = file->private_data;
> + u64 ticks = 0;
> +
> + if (count < sizeof(ticks))
> + return -EINVAL;
> +
> + if (get_user(ticks, (u64 __user *) buf))
> + return -EFAULT;
> +
> + spin_lock_irq(&ctx->wqh.lock);
> + ctx->ticks = ticks;

So what wakes a potential waiter in read/poll?

Thanks,

tglx


\
 
 \ /
  Last update: 2014-05-22 05:21    [W:0.112 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site