Blame view
net/dns_resolver/internal.h
1.42 KB
1a4240f47 DNS: Separate out... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
/* * Copyright (c) 2010 Wang Lei * Author(s): Wang Lei (wang840925@gmail.com). All Rights Reserved. * * Internal DNS Rsolver stuff * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See * the GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License |
c057b190b net/*: Fix FSF ad... |
18 |
* along with this library; if not, see <http://www.gnu.org/licenses/>. |
1a4240f47 DNS: Separate out... |
19 20 21 22 23 24 25 |
*/ #include <linux/compiler.h> #include <linux/kernel.h> #include <linux/sched.h> /* |
146aa8b14 KEYS: Merge the t... |
26 27 28 29 30 31 32 33 |
* Layout of key payload words. */ enum { dns_key_data, dns_key_error, }; /* |
1a4240f47 DNS: Separate out... |
34 35 36 37 38 39 40 |
* dns_key.c */ extern const struct cred *dns_resolver_cache; /* * debug tracing */ |
95c961747 net: cleanup unsi... |
41 |
extern unsigned int dns_resolver_debug; |
1a4240f47 DNS: Separate out... |
42 43 44 45 46 47 48 49 50 51 52 |
#define kdebug(FMT, ...) \ do { \ if (unlikely(dns_resolver_debug)) \ printk(KERN_DEBUG "[%-6.6s] "FMT" ", \ current->comm, ##__VA_ARGS__); \ } while (0) #define kenter(FMT, ...) kdebug("==> %s("FMT")", __func__, ##__VA_ARGS__) #define kleave(FMT, ...) kdebug("<== %s()"FMT"", __func__, ##__VA_ARGS__) |