Lines Matching defs:sib
365 struct sib_info sib;
379 sib.sib_reason = SIB_HELPER_PRE;
380 sib.helper_name = cmd;
381 drbd_bcast_event(device, &sib);
392 sib.sib_reason = SIB_HELPER_POST;
393 sib.helper_exit_code = ret;
394 drbd_bcast_event(device, &sib);
3766 const struct sib_info *sib)
3775 /* If sib != NULL, this is drbd_bcast_event, which anyone can listen
3778 * If sib == NULL, this is drbd_adm_get_status, executed synchronously
3786 exclude_sensitive = sib || !capable(CAP_SYS_ADMIN);
3819 if (nla_put_u32(skb, T_sib_reason, sib ? sib->sib_reason : SIB_GET_STATUS_REPLY) ||
3859 if (sib) {
3860 switch(sib->sib_reason) {
3865 if (nla_put_u32(skb, T_prev_state, sib->os.i) ||
3866 nla_put_u32(skb, T_new_state, sib->ns.i))
3871 sib->helper_exit_code))
3875 if (nla_put_string(skb, T_helper, sib->helper_name))
4573 void drbd_bcast_event(struct drbd_device *device, const struct sib_info *sib)
4592 if (nla_put_status_info(msg, device, sib))
4607 err, seq, sib->sib_reason);