cmd = ibmasm_new_command(sizeof(struct os_state_command)); 
cmd = ibmasm_new_command(sp, sizeof(struct os_state_command)); 
int ibmasm_send_os_state(struct service_processor *sp, int os_state){	struct command *cmd;	struct os_state_command *os_state_cmd;	int result = 0;	cmd = ibmasm_new_command(sizeof(struct os_state_command));	if (cmd == NULL)		return -ENOMEM;	os_state_cmd = (struct os_state_command *)cmd->buffer;	os_state_cmd->header.type		= sp_write;	os_state_cmd->header.command_size	= 3;	os_state_cmd->header.data_size		= 1;	os_state_cmd->header.status		= 0;	os_state_cmd->command[0]		= 4;	os_state_cmd->command[1]		= 3;	os_state_cmd->command[2]		= 6;	os_state_cmd->data			= os_state;	ibmasm_exec_command(sp, cmd);	ibmasm_wait_for_response(cmd, IBMASM_CMD_TIMEOUT_NORMAL);	if (cmd->status != IBMASM_CMD_COMPLETE)		result = -ENODEV;	command_put(cmd);	return result;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/8818760512424f60ad9fafb7a087b007a9274eb3/dot_command.c/buggy/drivers/misc/ibmasm/dot_command.c