Bug #4786

emlxs shouldn't abuse ddi_get_time(9f)

Added by Josef Sipek over 4 years ago. Updated over 3 years ago.

Status:NewStart date:2014-04-21
Priority:LowDue date:
Assignee:-% Done:

50%

Category:driver - device drivers
Target version:-
Difficulty:Bite-size Tags:needs-triage

Description

ddi_get_time() returns a Unix timestamp based on the current TOD. If the TOD setting changes for whatever reason (daylight saving time adjustments, NTP), the value returned by ddi_get_time() may change non-monotonically. This makes it unsuitable for calculating timeouts and wait times.

emlxs - old emlxs fix (4.4 KB) Josef Sipek, 2015-04-15 01:35 PM


Related issues

Related to illumos gate - Bug #4776: man: don't lie about ddi_get_time(9f) uses Closed 2014-04-17

History

#1 Updated by Josef Sipek over 4 years ago

ddi_get_time() returns a Unix timestamp based on the current TOD. If the TOD setting changes for whatever reason (daylight saving time adjustments, NTP), the value returned by ddi_get_time() may change non-monotonically. This makes it unsuitable for calculating timeouts and wait times.

#2 Updated by Josef Sipek over 3 years ago

  • % Done changed from 80 to 50
  • Assignee deleted (Josef Sipek)
  • File emlxs added

#3 Updated by Josef Sipek over 3 years ago

I don't really have time to update this patch to apply against the latest emlxs code so I'm sharing in case someone wants to drive this forward.

Also available in: Atom