Lines Matching defs:logger
35 /* return EEXIST if the same logger is registred, 0 on success. */
36 int nf_log_register(u_int8_t pf, struct nf_logger *logger)
44 for (i = 0; i < ARRAY_SIZE(logger->list); i++)
45 INIT_LIST_HEAD(&logger->list[i]);
51 list_add_tail(&(logger->list[i]), &(nf_loggers_l[i]));
54 list_add_tail(&logger->list[pf], &nf_loggers_l[pf]);
58 rcu_assign_pointer(nf_loggers[pf], logger);
67 void nf_log_unregister(struct nf_logger *logger)
76 if (c_logger == logger)
78 list_del(&logger->list[i]);
86 int nf_log_bind_pf(u_int8_t pf, const struct nf_logger *logger)
89 if (__find_logger(pf, logger->name) == NULL) {
93 rcu_assign_pointer(nf_loggers[pf], logger);
117 const struct nf_logger *logger;
120 logger = rcu_dereference(nf_loggers[pf]);
121 if (logger) {
125 logger->logfn(pf, hooknum, skb, in, out, loginfo, prefix);
160 const struct nf_logger *logger;
164 logger = nf_loggers[*pos];
166 if (!logger)
169 ret = seq_printf(s, "%2lld %s (", *pos, logger->name);
226 const struct nf_logger *logger;
243 logger = __find_logger(tindex, buf);
244 if (logger == NULL) {
248 rcu_assign_pointer(nf_loggers[tindex], logger);
252 logger = nf_loggers[tindex];
253 if (!logger)
256 table->data = logger->name;