Lines Matching refs:subsys
137 * @subsys: the subsystem to register, must not be the core
141 void drop_reasons_register_subsys(enum skb_drop_reason_subsys subsys,
144 if (WARN(subsys <= SKB_DROP_REASON_SUBSYS_CORE ||
145 subsys >= ARRAY_SIZE(drop_reasons_by_subsys),
146 "invalid subsystem %d\n", subsys))
150 RCU_INIT_POINTER(drop_reasons_by_subsys[subsys], list);
156 * @subsys: the subsystem to remove, must not be the core
160 void drop_reasons_unregister_subsys(enum skb_drop_reason_subsys subsys)
162 if (WARN(subsys <= SKB_DROP_REASON_SUBSYS_CORE ||
163 subsys >= ARRAY_SIZE(drop_reasons_by_subsys),
164 "invalid subsystem %d\n", subsys))
167 RCU_INIT_POINTER(drop_reasons_by_subsys[subsys], NULL);