Scroll to navigation

USER_REGSET_ACTIVE_F(9) Machine State USER_REGSET_ACTIVE_F(9)

NAME

user_regset_active_fn - type of active function in struct user_regset

SYNOPSIS

typedef int user_regset_active_fn(struct task_struct * target, const struct user_regset * regset);

ARGUMENTS

target

thread being examined

regset

regset being examined

DESCRIPTION

Return -ENODEV if not available on the hardware found. Return 0 if no interesting state in this thread. Return >0 number of size units of interesting state. Any get call fetching state beyond that number will see the default initialization state for this data, so a caller that knows what the default state is need not copy it all out. This call is optional; the pointer is NULL if there is no inexpensive check to yield a value < n.

April 2023 Kernel Hackers Manual 2.6.