taskstats.c (339bf98ffc6a8d8eb16fc532ac57ffbced2f8a68) taskstats.c (3dabc7157859e706770c825aa229f8943db4e0e1)
1/*
2 * taskstats.c - Export per-task statistics to userland
3 *
4 * Copyright (C) Shailabh Nagar, IBM Corp. 2006
5 * (C) Balbir Singh, IBM Corp. 2006
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 63 unchanged lines hidden (view full) ---

72 void **replyp, size_t size)
73{
74 struct sk_buff *skb;
75 void *reply;
76
77 /*
78 * If new attributes are added, please revisit this allocation
79 */
1/*
2 * taskstats.c - Export per-task statistics to userland
3 *
4 * Copyright (C) Shailabh Nagar, IBM Corp. 2006
5 * (C) Balbir Singh, IBM Corp. 2006
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 63 unchanged lines hidden (view full) ---

72 void **replyp, size_t size)
73{
74 struct sk_buff *skb;
75 void *reply;
76
77 /*
78 * If new attributes are added, please revisit this allocation
79 */
80 skb = nlmsg_new(genlmsg_total_size(size), GFP_KERNEL);
80 skb = genlmsg_new(size, GFP_KERNEL);
81 if (!skb)
82 return -ENOMEM;
83
84 if (!info) {
85 int seq = get_cpu_var(taskstats_seqnum)++;
86 put_cpu_var(taskstats_seqnum);
87
88 reply = genlmsg_put(skb, 0, seq,

--- 474 unchanged lines hidden ---
81 if (!skb)
82 return -ENOMEM;
83
84 if (!info) {
85 int seq = get_cpu_var(taskstats_seqnum)++;
86 put_cpu_var(taskstats_seqnum);
87
88 reply = genlmsg_put(skb, 0, seq,

--- 474 unchanged lines hidden ---