subr_kobj.c (7d4b968b0fa6afc6bca132c27e2041c979ee6101) | subr_kobj.c (fbbb13f962e52bf547c5a901fe6fbc4390f6be54) |
---|---|
1/*- 2 * Copyright (c) 2000,2003 Doug Rabson 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 --- 59 unchanged lines hidden (view full) --- 68 * happen. This is used to provide the PMAP layer on PowerPC, as well 69 * as board support. 70 */ 71 72#define KOBJ_LOCK() if (kobj_mutex_inited) mtx_lock(&kobj_mtx); 73#define KOBJ_UNLOCK() if (kobj_mutex_inited) mtx_unlock(&kobj_mtx); 74#define KOBJ_ASSERT(what) if (kobj_mutex_inited) mtx_assert(&kobj_mtx,what); 75 | 1/*- 2 * Copyright (c) 2000,2003 Doug Rabson 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 --- 59 unchanged lines hidden (view full) --- 68 * happen. This is used to provide the PMAP layer on PowerPC, as well 69 * as board support. 70 */ 71 72#define KOBJ_LOCK() if (kobj_mutex_inited) mtx_lock(&kobj_mtx); 73#define KOBJ_UNLOCK() if (kobj_mutex_inited) mtx_unlock(&kobj_mtx); 74#define KOBJ_ASSERT(what) if (kobj_mutex_inited) mtx_assert(&kobj_mtx,what); 75 |
76SYSCTL_UINT(_kern, OID_AUTO, kobj_methodcount, CTLFLAG_RD, | 76SYSCTL_INT(_kern, OID_AUTO, kobj_methodcount, CTLFLAG_RD, |
77 &kobj_next_id, 0, ""); 78 79static void 80kobj_init_mutex(void *arg) 81{ 82 if (!kobj_mutex_inited) { 83 mtx_init(&kobj_mtx, "kobj", NULL, MTX_DEF); 84 kobj_mutex_inited = 1; --- 277 unchanged lines hidden --- | 77 &kobj_next_id, 0, ""); 78 79static void 80kobj_init_mutex(void *arg) 81{ 82 if (!kobj_mutex_inited) { 83 mtx_init(&kobj_mtx, "kobj", NULL, MTX_DEF); 84 kobj_mutex_inited = 1; --- 277 unchanged lines hidden --- |