Whamcloud - gitweb
merge b_devel into HEAD, which will become 0.7.3
[fs/lustre-release.git] / lustre / kernel_patches / patches / netconsole_sysrq.patch
1  0 files changed
2
3 --- linux-2.4.20-rh/drivers/net/netconsole.c~netconsole_sysrq   2003-04-11 14:04:57.000000000 +0800
4 +++ linux-2.4.20-rh-root/drivers/net/netconsole.c       2003-07-01 11:10:26.000000000 +0800
5 @@ -988,7 +988,15 @@ static void netconsole_netdump (struct p
6                         reply.info = 0;
7                         send_netdump_skb(dev, tmp, strlen(tmp), &reply);
8                         break;
9 -
10 +                case COMM_SYSRQ:
11 +                       Dprintk("got SYSRQ command.\n");
12 +                       printk("netdump: got SYSRQ command %d \n", req->from);
13 +                       handle_sysrq(req->from, regs, NULL, NULL);
14 +                       reply.code = REPLY_SYSRQ;
15 +                       reply.nr = req->nr;
16 +                       reply.info = req->from;
17 +                       send_netdump_skb(dev, tmp, strlen(tmp), &reply);
18 +                       break;
19                 default:
20                         reply.code = REPLY_ERROR;
21                         reply.nr = req->nr;
22 --- linux-2.4.20-rh/drivers/net/netconsole.h~netconsole_sysrq   2003-04-11 14:04:57.000000000 +0800
23 +++ linux-2.4.20-rh-root/drivers/net/netconsole.h       2003-07-01 11:11:29.000000000 +0800
24 @@ -42,6 +42,7 @@ enum netdump_commands {
25         COMM_START_NETDUMP_ACK = 7,
26         COMM_GET_REGS = 8,
27         COMM_SHOW_STATE = 9,
28 +       COMM_SYSRQ=10,
29  };
30  
31  #define NETDUMP_REQ_SIZE (8+4*4)
32 @@ -69,6 +70,7 @@ enum netdump_replies {
33         REPLY_REGS = 10,
34         REPLY_MAGIC = 11,
35         REPLY_SHOW_STATE = 12,
36 +       REPLY_SYSRQ=13,
37  };
38  
39  typedef struct netdump_reply_s {
40
41 _