summaryrefslogtreecommitdiff
path: root/privs.h
blob: 9f9cfdd0626dee927ca26138809eec7a8daf7a38 (plain)
1
2
3
4
5
6
7
8
#ifndef PRIVS_H
#define PRIVS_H

#include <stdbool.h>

extern void drop_privileges(bool enforce, uid_t uid, gid_t gid);

#endif /* PRIVS_H */
rl'>
authorDouglas Gilbert <dgilbert@interlog.com>2016-04-25 12:16:30 -0400
committerMartin K. Petersen <martin.petersen@oracle.com>2016-04-29 19:25:59 -0400
commitb333a819813c756804034c93b05e43ccdd4025a5 (patch)
tree905ccf2b495a9eb6d0e79ade05252746cbcefde6
parent185dd2329785981d458690c78fd56b320fef4ea7 (diff)
scsi_debug: replace jiffy timers with hr timers
The driver supports two command delay interfaces, the original one whose unit is a jiffy, and a newer one whose unit is a nanosecond. Each had different implementations. Keep both interfaces but simplify the implemenation to use a single delay mechanism based on high resolution timers. Signed-off-by: Douglas Gilbert <dgilbert@interlog.com> Reviewed-by: Hannes Reinicke <hare@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat