Project

General

Profile

Actions

Bug #4786

open

emlxs shouldn't abuse ddi_get_time(9f)

Added by Josef Sipek over 9 years ago. Updated over 8 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
driver - device drivers
Start date:
2014-04-21
Due date:
% Done:

50%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:
External Bug:

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.


Files

emlxs (4.4 KB) emlxs old emlxs fix 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) usesClosedJosef Sipek2014-04-17

Actions
Actions #1

Updated by Josef Sipek over 9 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.

Actions #2

Updated by Josef Sipek over 8 years ago

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

Updated by Josef Sipek over 8 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.

Actions

Also available in: Atom PDF