• Home
  • Raw
  • Download

Lines Matching refs:info

79 static int prepare_reply(struct genl_info *info, u8 cmd, struct sk_buff **skbp,  in prepare_reply()  argument
92 if (!info) { in prepare_reply()
98 reply = genlmsg_put_reply(skb, info, &family, 0, cmd); in prepare_reply()
383 static int cgroupstats_user_cmd(struct sk_buff *skb, struct genl_info *info) in cgroupstats_user_cmd() argument
394 na = info->attrs[CGROUPSTATS_CMD_ATTR_FD]; in cgroupstats_user_cmd()
398 fd = nla_get_u32(info->attrs[CGROUPSTATS_CMD_ATTR_FD]); in cgroupstats_user_cmd()
405 rc = prepare_reply(info, CGROUPSTATS_CMD_NEW, &rep_skb, in cgroupstats_user_cmd()
421 rc = send_reply(rep_skb, info->snd_pid); in cgroupstats_user_cmd()
428 static int taskstats_user_cmd(struct sk_buff *skb, struct genl_info *info) in taskstats_user_cmd() argument
439 rc = parse(info->attrs[TASKSTATS_CMD_ATTR_REGISTER_CPUMASK], mask); in taskstats_user_cmd()
443 rc = add_del_listener(info->snd_pid, mask, REGISTER); in taskstats_user_cmd()
447 rc = parse(info->attrs[TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK], mask); in taskstats_user_cmd()
451 rc = add_del_listener(info->snd_pid, mask, DEREGISTER); in taskstats_user_cmd()
464 rc = prepare_reply(info, TASKSTATS_CMD_NEW, &rep_skb, size); in taskstats_user_cmd()
469 if (info->attrs[TASKSTATS_CMD_ATTR_PID]) { in taskstats_user_cmd()
470 u32 pid = nla_get_u32(info->attrs[TASKSTATS_CMD_ATTR_PID]); in taskstats_user_cmd()
478 } else if (info->attrs[TASKSTATS_CMD_ATTR_TGID]) { in taskstats_user_cmd()
479 u32 tgid = nla_get_u32(info->attrs[TASKSTATS_CMD_ATTR_TGID]); in taskstats_user_cmd()
490 return send_reply(rep_skb, info->snd_pid); in taskstats_user_cmd()