Untitled
By: a guest | Feb 17th, 2010 | Syntax:
C | Size: 0.61 KB | Hits: 79 | Expires: Never
if(!ept)
ept=msm_rpc_connect(0x3000000f, 0x0, 0);
if(!ept) {
printk("Couldn't open rpc endpoint\n");
return -EIO;
}
req.data=cpu_to_be32(0x36);
msm_rpc_call(ept, 0x7, &req, sizeof(req), HZ);
req.data=cpu_to_be32(0x1);
msm_rpc_call(ept, 0x2c, &req, sizeof(req), HZ);
req.data=cpu_to_be32(0x1);
msm_rpc_call(ept, 0x27, &req, sizeof(req), HZ);
msm_rpc_call(ept, 0x2c, NULL, 0, HZ);