Re: [PATCHv2] bpf: add bpf_msleep_interruptible() kfunc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On (25/05/15 10:59), Ferenc Fejes wrote:
> > +__bpf_kfunc unsigned long bpf_msleep_interruptible(unsigned int msecs)
> > +{
> > +	return msleep_interruptible(msecs);
> 
> Perhaps exposing fsleep instead of msleep? fsleep might fallback to msleep if no
> better mechanism exists or if the sleep duration is >1000us.

I like the TASK_INTERRUPTIBLE semantics of msleep_interruptible().




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux