4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change
on this file since 459afb1 was
459afb1,
checked in by Jennifer Averett <jennifer.averett@…>, on 04/16/12 at 14:10:35
|
Implemented a version of rmlock using rwlock.
|
-
Property mode set to
100644
|
File size:
999 bytes
|
Rev | Line | |
---|
[a9153ec] | 1 | /** |
---|
| 2 | * @file |
---|
| 3 | * |
---|
| 4 | * @ingroup rtems_bsd_rtems |
---|
| 5 | * |
---|
| 6 | * @brief TODO. |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | /* |
---|
| 10 | * Copyright (c) 2009, 2010 embedded brains GmbH. All rights reserved. |
---|
| 11 | * |
---|
| 12 | * embedded brains GmbH |
---|
| 13 | * Obere Lagerstr. 30 |
---|
| 14 | * 82178 Puchheim |
---|
| 15 | * Germany |
---|
| 16 | * <rtems@embedded-brains.de> |
---|
| 17 | * |
---|
| 18 | * The license and distribution terms for this file may be |
---|
| 19 | * found in the file LICENSE in this distribution or at |
---|
| 20 | * http://www.rtems.com/license/LICENSE. |
---|
| 21 | */ |
---|
| 22 | |
---|
| 23 | /* Necessary to obtain some internal functions */ |
---|
| 24 | #define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ |
---|
| 25 | |
---|
[6ad03bf] | 26 | #include <freebsd/machine/rtems-bsd-config.h> |
---|
[a9153ec] | 27 | |
---|
[6ad03bf] | 28 | #include <freebsd/sys/param.h> |
---|
| 29 | #include <freebsd/sys/types.h> |
---|
| 30 | #include <freebsd/sys/systm.h> |
---|
| 31 | #include <freebsd/sys/ktr.h> |
---|
| 32 | #include <freebsd/sys/lock.h> |
---|
| 33 | #include <freebsd/sys/mutex.h> |
---|
| 34 | #include <freebsd/sys/sx.h> |
---|
| 35 | #include <freebsd/sys/rwlock.h> |
---|
| 36 | #include <freebsd/sys/proc.h> |
---|
[a9153ec] | 37 | |
---|
| 38 | struct lock_class *lock_classes[LOCK_CLASS_MAX + 1] = { |
---|
| 39 | &lock_class_mtx_spin, |
---|
| 40 | &lock_class_mtx_sleep, |
---|
| 41 | &lock_class_sx, |
---|
[459afb1] | 42 | &lock_class_rw, |
---|
[a9153ec] | 43 | &lock_class_rw, |
---|
| 44 | }; |
---|
| 45 | |
---|
Note: See
TracBrowser
for help on using the repository browser.