Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Feb 17th, 2010 | Syntax: C | Size: 0.61 KB | Hits: 79 | Expires: Never
Copy text to clipboard
  1.                 if(!ept)
  2.                         ept=msm_rpc_connect(0x3000000f, 0x0, 0);
  3.                 if(!ept) {
  4.                         printk("Couldn't open rpc endpoint\n");
  5.                         return -EIO;
  6.                 }
  7.                 req.data=cpu_to_be32(0x36);
  8.                 msm_rpc_call(ept, 0x7, &req, sizeof(req), HZ);
  9.                 req.data=cpu_to_be32(0x1);
  10.                 msm_rpc_call(ept, 0x2c, &req, sizeof(req), HZ);
  11.                 req.data=cpu_to_be32(0x1);
  12.                 msm_rpc_call(ept, 0x27, &req, sizeof(req), HZ);
  13.                 msm_rpc_call(ept, 0x2c, NULL, 0, HZ);