Lines Matching refs:subsys
150 * @subsys: the subsystem to register, must not be the core
154 void drop_reasons_register_subsys(enum skb_drop_reason_subsys subsys,
157 if (WARN(subsys <= SKB_DROP_REASON_SUBSYS_CORE ||
158 subsys >= ARRAY_SIZE(drop_reasons_by_subsys),
159 "invalid subsystem %d\n", subsys))
163 RCU_INIT_POINTER(drop_reasons_by_subsys[subsys], list);
169 * @subsys: the subsystem to remove, must not be the core
173 void drop_reasons_unregister_subsys(enum skb_drop_reason_subsys subsys)
175 if (WARN(subsys <= SKB_DROP_REASON_SUBSYS_CORE ||
176 subsys >= ARRAY_SIZE(drop_reasons_by_subsys),
177 "invalid subsystem %d\n", subsys))
180 RCU_INIT_POINTER(drop_reasons_by_subsys[subsys], NULL);