Page MenuHomeFreeBSD

Implement wait_event_interruptible_timeout.
ClosedPublic

Authored by np on Mar 30 2016, 1:39 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 20 2024, 4:47 PM
Unknown Object (File)
Feb 27 2024, 10:35 PM
Unknown Object (File)
Feb 19 2024, 5:24 AM
Unknown Object (File)
Jan 8 2024, 2:56 AM
Unknown Object (File)
Dec 28 2023, 4:49 PM
Unknown Object (File)
Dec 26 2023, 6:22 AM
Unknown Object (File)
Dec 25 2023, 5:08 PM
Unknown Object (File)
Dec 9 2023, 11:07 PM
Subscribers

Details

Summary

Implement wait_event_interruptible_timeout in the linuxkpi module. It's
needed for upcoming updates to krping (support for fast registration).

Submitted by: Krishnamraju Eraparaju @ Chelsio

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

np retitled this revision from to Implement wait_event_interruptible_timeout..
np updated this object.
np edited the test plan for this revision. (Show Details)
np added reviewers: dumbbell, hselasky.
sys/compat/linuxkpi/common/include/linux/wait.h
117 ↗(On Diff #14729)

We have a function "linux_timer_jiffies_until()" already. You should use that and remove this macro.

131 ↗(On Diff #14729)

__ret should be "int" ?

165 ↗(On Diff #14729)

Either set "__ret" to "int" or cast result of subtraction to "int", because jiffies is long in linux but int in FreeBSD.

Updates based on feedback.

Move linux_timer_jiffies_until to jiffies.h so it's available in wait.h.
Change __ret to int.

hselasky edited edge metadata.

Looks good. Just do a amd64 LINT build and check my whitespace comments before commit.

sys/compat/linuxkpi/common/include/linux/wait.h
123 ↗(On Diff #14744)

Is there a space/TAB style issue above?

This revision is now accepted and ready to land.Mar 30 2016, 6:59 PM
np edited edge metadata.

Whitespace nits.

This revision now requires review to proceed.Mar 30 2016, 7:02 PM
This revision is now accepted and ready to land.Mar 30 2016, 7:05 PM
This revision was automatically updated to reflect the committed changes.