Skip to content
Snippets Groups Projects
  • H. Peter Anvin's avatar
    6684ba20
    compat: Add helper functions to read/write struct timeval, timespec · 6684ba20
    H. Peter Anvin authored
    
    Add helper functions to read and write struct timeval and struct
    timespec from userspace.  We already had helper functions for reading
    and writing struct compat_timespec; add a set of functions to do the
    same with struct timeval, and add a second suite of functions which
    can be sensitive to COMPAT_USE_64BIT_TIME and access either 32- or
    64-bit time structures.
    
    This also exports these helper functions to modules.
    
    Rename the existing inlines for converting between struct
    compat_timeval and native struct timespec so we can have a saner
    naming convention for the exported functions.
    
    Suggested-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
    6684ba20
    History
    compat: Add helper functions to read/write struct timeval, timespec
    H. Peter Anvin authored
    
    Add helper functions to read and write struct timeval and struct
    timespec from userspace.  We already had helper functions for reading
    and writing struct compat_timespec; add a set of functions to do the
    same with struct timeval, and add a second suite of functions which
    can be sensitive to COMPAT_USE_64BIT_TIME and access either 32- or
    64-bit time structures.
    
    This also exports these helper functions to modules.
    
    Rename the existing inlines for converting between struct
    compat_timeval and native struct timespec so we can have a saner
    naming convention for the exported functions.
    
    Suggested-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>