if_llatbl.h (2e370a5c7a5528afb124f6273136736e5d5fb798) if_llatbl.h (dc56e98f0d95e809a1044d38f86dd9e734857fe0)
1/*
2 * Copyright (c) 2004 Luigi Rizzo, Alessandro Cerri. All rights reserved.
3 * Copyright (c) 2004-2008 Qing Li. All rights reserved.
4 * Copyright (c) 2008 Kip Macy. 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:

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

36struct ifnet;
37struct sysctl_req;
38struct rt_msghdr;
39struct rt_addrinfo;
40
41struct llentry;
42LIST_HEAD(llentries, llentry);
43
1/*
2 * Copyright (c) 2004 Luigi Rizzo, Alessandro Cerri. All rights reserved.
3 * Copyright (c) 2004-2008 Qing Li. All rights reserved.
4 * Copyright (c) 2008 Kip Macy. 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:

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

36struct ifnet;
37struct sysctl_req;
38struct rt_msghdr;
39struct rt_addrinfo;
40
41struct llentry;
42LIST_HEAD(llentries, llentry);
43
44extern struct rwlock lltable_rwlock;
45#define LLTABLE_RLOCK() rw_rlock(&lltable_rwlock)
46#define LLTABLE_RUNLOCK() rw_runlock(&lltable_rwlock)
47#define LLTABLE_WLOCK() rw_wlock(&lltable_rwlock)
48#define LLTABLE_WUNLOCK() rw_wunlock(&lltable_rwlock)
49#define LLTABLE_LOCK_ASSERT() rw_assert(&lltable_rwlock, RA_LOCKED)
50
44/*
45 * Code referencing llentry must at least hold
46 * a shared lock
47 */
48struct llentry {
49 LIST_ENTRY(llentry) lle_next;
50 struct rwlock lle_lock;
51 struct lltable *lle_tbl;

--- 148 unchanged lines hidden ---
51/*
52 * Code referencing llentry must at least hold
53 * a shared lock
54 */
55struct llentry {
56 LIST_ENTRY(llentry) lle_next;
57 struct rwlock lle_lock;
58 struct lltable *lle_tbl;

--- 148 unchanged lines hidden ---