History log of /minix3/minix/drivers/storage/floppy/floppy.c (Results 1 – 4 of 4)
Revision Date Author Comments
# cfd712b4 21-Jul-2016 David van Moolenbroek <david@minix3.org>

Various timer improvements

Now that clock_t is an unsigned value, we can also allow the system
uptime to wrap. Essentially, instead of using (a <= b) to see if time
a occurs no later than time b, w

Various timer improvements

Now that clock_t is an unsigned value, we can also allow the system
uptime to wrap. Essentially, instead of using (a <= b) to see if time
a occurs no later than time b, we use (b - a <= CLOCK_MAX / 2). The
latter value does not exist, so instead we add TMRDIFF_MAX for that
purpose.

We must therefore also avoid using values like 0 and LONG_MAX as
special values for absolute times. This patch extends the libtimers
interface so that it no longer uses 0 to indicate "no timeout".
Similarly, TMR_NEVER is now used as special value only when
otherwise a relative time difference would be used. A minix_timer
structure is now considered in use when it has a watchdog function set,
rather than when the absolute expiry time is not TMR_NEVER. A few new
macros in <minix/timers.h> help with timer comparison and obtaining
properties from a minix_timer structure.

This patch also eliminates the union of timer arguments, instead using
the only union element that is only used (the integer). This prevents
potential problems with e.g. live update. The watchdog function
prototype is changed to pass in the argument value rather than a
pointer to the timer structure, since obtaining the argument value was
the only current use of the timer structure anyway. The result is a
somewhat friendlier timers API.

The VFS select code required a few more invasive changes to restrict
the timer value to the new maximum, effectively matching the timer
code in PM. As a side effect, select(2) has been changed to reject
invalid timeout values. That required a change to the test set, which
relied on the previous, erroneous behavior.

Finally, while we're rewriting significant chunks of the timer code
anyway, also covert it to KNF and add a few more explanatory comments.

Change-Id: Id43165c3fbb140b32b90be2cca7f68dd646ea72e

show more ...


# 3f82ac6a 20-Dec-2014 Cristiano Giuffrida <giuffrida@cs.vu.nl>

services: Selectively enable stateful restart.

Change-Id: Ibf6afa3041013ca714e28b673abb1329cd72d2d5


# e1f889d2 01-Mar-2014 Cristiano Giuffrida <giuffrida@cs.vu.nl>

libsys: Change SEF Live Update state callback API.

The following callbacks are concerned:
- state_save
- state_isvalid

Change-Id: I75f71fe162ccd8b23b18cae15f844b79b290a8c1


# 433d6423 28-Jul-2014 Lionel Sambuc <lionel@minix3.org>

New sources layout

Change-Id: Ic716f336b7071063997cf5b4dae6d50e0b4631e9