linux_emul.h (416ba5c74546f32a993436a99516d35008e9f384) | linux_emul.h (23e8912c6087b3b6690566258c3a06f55a51eb2c) |
---|---|
1/*- 2 * Copyright (c) 2006 Roman Divacky 3 * Copyright (c) 2013 Dmitry Chagin 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 53 unchanged lines hidden (view full) --- 62 futex REQUEUE op*/ 63#define LINUX_XUNSUP_EPOLL 0x00000002 /* unsupported epoll events */ 64#define LINUX_XUNSUP_FUTEXPIOP 0x00000004 /* uses unsupported pi futex */ 65 66struct linux_pemuldata { 67 uint32_t flags; /* process emuldata flags */ 68 struct sx pem_sx; /* lock for this struct */ 69 void *epoll; /* epoll data */ | 1/*- 2 * Copyright (c) 2006 Roman Divacky 3 * Copyright (c) 2013 Dmitry Chagin 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 53 unchanged lines hidden (view full) --- 62 futex REQUEUE op*/ 63#define LINUX_XUNSUP_EPOLL 0x00000002 /* unsupported epoll events */ 64#define LINUX_XUNSUP_FUTEXPIOP 0x00000004 /* uses unsupported pi futex */ 65 66struct linux_pemuldata { 67 uint32_t flags; /* process emuldata flags */ 68 struct sx pem_sx; /* lock for this struct */ 69 void *epoll; /* epoll data */ |
70 uint32_t persona; /* process execution domain */ |
|
70}; 71 72#define LINUX_PEM_XLOCK(p) sx_xlock(&(p)->pem_sx) 73#define LINUX_PEM_XUNLOCK(p) sx_xunlock(&(p)->pem_sx) 74#define LINUX_PEM_SLOCK(p) sx_slock(&(p)->pem_sx) 75#define LINUX_PEM_SUNLOCK(p) sx_sunlock(&(p)->pem_sx) 76 77struct linux_pemuldata *pem_find(struct proc *); 78 79#endif /* !_LINUX_EMUL_H_ */ | 71}; 72 73#define LINUX_PEM_XLOCK(p) sx_xlock(&(p)->pem_sx) 74#define LINUX_PEM_XUNLOCK(p) sx_xunlock(&(p)->pem_sx) 75#define LINUX_PEM_SLOCK(p) sx_slock(&(p)->pem_sx) 76#define LINUX_PEM_SUNLOCK(p) sx_sunlock(&(p)->pem_sx) 77 78struct linux_pemuldata *pem_find(struct proc *); 79 80#endif /* !_LINUX_EMUL_H_ */ |