FreeBSD/sys/dev/ipmi/ipmi.c
/* Allocate a new request with request and reply buffers. */
Allocate a new request with request and reply buffers.
Allocate a new request with request and reply buffers .
struct ipmi_request *
ipmi_alloc_request(struct ipmi_device *dev, long msgid, uint8_t addr,
    uint8_t command, size_t requestlen, size_t replylen)
{
	struct ipmi_request *req;
	req = malloc(sizeof(struct ipmi_request) + requestlen + replylen,
	    M_IPMI, M_WAITOK | M_ZERO);
	ipmi_init_request(req, dev, msgid, addr, command, requestlen, replylen);
	return (req);
}
struct ipmi_request * ipmi_alloc_request ( struct ipmi_device * dev , long msgid , uint8_t addr , uint8_t command , size_t requestlen , size_t replylen ) { struct ipmi_request * req ; req = malloc ( sizeof ( struct ipmi_request ) + requestlen + replylen , M_IPMI , M_WAITOK | M_ZERO ) ; ipmi_init_request ( req , dev , msgid , addr , command , requestlen , replylen ) ; return ( req ) ; }
Allocate a new request with request and reply buffers.
Allocate a new request with request and reply buffers .