/usr/src/openafs-1.6.15/include/preempt.h is in openafs-modules-dkms 1.6.15-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | /*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
*
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
/*******************************************************************\
* *
* Information Technology Center *
* Carnegie-Mellon University *
* *
\*******************************************************************/
#if defined( _WIN32)
#define PRE_InitPreempt(A)
#endif
#if defined( _WIN32) || defined(AFS_LINUX20_ENV)
/* preemption not implemented for win32. Use threads instead. */
#define PRE_PreemptMe()
#define PRE_BeginCritical()
#define PRE_EndCritical()
#else
#define PRE_PreemptMe() lwp_cpptr->level = 0
#define PRE_BeginCritical() lwp_cpptr->level++
#define PRE_EndCritical() lwp_cpptr->level--
#endif
#define DEFAULTSLICE 10
|