linux_emul.h (0269ae4c19ad779b43b0d6e2416ac7386945d692) linux_emul.h (7abf30d339336cef02a293352e0a82181e75c2fb)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2006 Roman Divacky
5 * Copyright (c) 2013 Dmitry Chagin
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 66 unchanged lines hidden (view full) ---

75
76#define LINUX_PEM_XLOCK(p) sx_xlock(&(p)->pem_sx)
77#define LINUX_PEM_XUNLOCK(p) sx_xunlock(&(p)->pem_sx)
78#define LINUX_PEM_SLOCK(p) sx_slock(&(p)->pem_sx)
79#define LINUX_PEM_SUNLOCK(p) sx_sunlock(&(p)->pem_sx)
80
81struct linux_pemuldata *pem_find(struct proc *);
82
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2006 Roman Divacky
5 * Copyright (c) 2013 Dmitry Chagin
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 66 unchanged lines hidden (view full) ---

75
76#define LINUX_PEM_XLOCK(p) sx_xlock(&(p)->pem_sx)
77#define LINUX_PEM_XUNLOCK(p) sx_xunlock(&(p)->pem_sx)
78#define LINUX_PEM_SLOCK(p) sx_slock(&(p)->pem_sx)
79#define LINUX_PEM_SUNLOCK(p) sx_sunlock(&(p)->pem_sx)
80
81struct linux_pemuldata *pem_find(struct proc *);
82
83extern const int linux_errtbl[];
84
85#endif /* !_LINUX_EMUL_H_ */
83#endif /* !_LINUX_EMUL_H_ */