drivers/gpu/drm/i915/i915_jiffies.h

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/i915/i915_jiffies.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/i915/i915_jiffies.h
Extension
.h
Size
369 bytes
Lines
17
Domain
Driver Families
Bucket
drivers/gpu
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef __I915_JIFFIES_H__
#define __I915_JIFFIES_H__

#include <linux/jiffies.h>

static inline unsigned long msecs_to_jiffies_timeout(const unsigned int m)
{
	unsigned long j = msecs_to_jiffies(m);

	return min_t(unsigned long, MAX_JIFFY_OFFSET, j + 1);
}

#endif /* __I915_JIFFIES_H__ */

Annotation

Implementation Notes