linux_emul.c (a4e3bad794e41d2d5362743924bd356d76d8e5a9) linux_emul.c (357afa71139263ad214da3ceea164c974129735c)
1/*-
2 * Copyright (c) 2006 Roman Divacky
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

50#ifdef COMPAT_LINUX32
51#include <machine/../linux32/linux.h>
52#include <machine/../linux32/linux32_proto.h>
53#else
54#include <machine/../linux/linux.h>
55#include <machine/../linux/linux_proto.h>
56#endif
57
1/*-
2 * Copyright (c) 2006 Roman Divacky
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

50#ifdef COMPAT_LINUX32
51#include <machine/../linux32/linux.h>
52#include <machine/../linux32/linux32_proto.h>
53#else
54#include <machine/../linux/linux.h>
55#include <machine/../linux/linux_proto.h>
56#endif
57
58struct sx emul_shared_lock;
59struct sx emul_lock;
58struct sx emul_shared_lock;
59struct mtx emul_lock;
60
61/* this returns locked reference to the emuldata entry (if found) */
62struct linux_emuldata *
63em_find(struct proc *p, int locked)
64{
65 struct linux_emuldata *em;
66
67 if (locked == EMUL_DOLOCK)

--- 265 unchanged lines hidden ---
60
61/* this returns locked reference to the emuldata entry (if found) */
62struct linux_emuldata *
63em_find(struct proc *p, int locked)
64{
65 struct linux_emuldata *em;
66
67 if (locked == EMUL_DOLOCK)

--- 265 unchanged lines hidden ---