X hits on this document

PDF document

February 10, 2006 - page 215 / 238

595 views

0 shares

0 downloads

0 comments

215 / 238

}

data[i] = i; req.addr = (void *) recv.addr; req.addr_len = recv.addr_len; req.msgid = recv.msgid; req.msg.netfn = recv.msg.netfn | 1; /* Make it a response */ req.msg.cmd = recv.msg.cmd; req.msg.data = data; req.msg.data_len = 10; r v = i o c t l ( f d , I P M I C T L _ S E N D _ C O M M A N D , & r e q ) if (rv == -1) { ; p e r r o r ( " i o c t l s e n d _ c m d " exit(1); } count++; got_one = 1; } ) ; e l s e i f ( ( r e c v . r e c v _ t y p e = = I P M I _ R E S P O N S E _ R E S P O N S E _ T && (recv.msg.netfn == MY_NETFN | 1) && (recv.msg.cmd == MY_CMD)) Y P E )

{

/* We got a response to our response send, done. */ count--; } else { printf("Got wrong msg type %d, netfn %x, cmd %x\n", recv.recv_type, recv.msg.netfn, recv.msg.cmd);

}

}

/* Remove our command registration. */ rv = ioctl(fd, IPMICTL_UNREGISTER_FOR_CMD, &cmdspec); if (rv == -1) {

p e r r o r ( " i o c t l u n r e g i s t e r _ f o r _ c m d " exit(1); ) ;

}

exit(0);

203

Document info
Document views595
Page views595
Page last viewedTue Dec 06 15:00:15 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments