• Roland McGrath's avatar
    x86: user_regset helpers · bae3f7c3
    Roland McGrath authored
    This adds some inlines to linux/regset.h intended for arch code to use in
    its user_regset get and set functions.  These make it pretty easy to deal
    with the interface's optional kernel-space or user-space pointers and its
    generalized access to a part of the register data at a time.
    
    In simple cases where the internal data structure matches the exported
    layout (core dump format), a get function can be nothing but a call to
    user_regset_copyout, and a set function a call to user_regset_copyin.
    
    In other cases the exported layout is usually made up of a few pieces each
    stored contiguously in a different internal data structure.  These helpers
    make it straightforward to write a get or set function by processing each
    contiguous chunk of the data in order.  The start_pos and end_pos arguments
    are always constants, so these inlines collapse to a small amount of code.
    Signed-off-by: default avatarRoland McGrath <roland@redhat.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    bae3f7c3
Name
Last commit
Last update
Documentation Loading commit data...
arch Loading commit data...
block Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
usr Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
REPORTING-BUGS Loading commit data...