Scroll to navigation

STRUCT PREV_CPUTIME(9) Driver Basics STRUCT PREV_CPUTIME(9)

NAME

struct_prev_cputime - snaphsot of system and user cputime

SYNOPSIS

struct prev_cputime {
#ifndef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE

cputime_t utime;
cputime_t stime;
raw_spinlock_t lock; #endif };

MEMBERS

utime

time spent in user mode

stime

time spent in system mode

lock

protects the above two fields

DESCRIPTION

Stores previous user/system time values such that we can guarantee monotonicity.

COPYRIGHT

January 2017 Kernel Hackers Manual 4.8.