fun_port_write_cmds
return fun_port_write_cmds(fp, 1, &key, &data);
err = fun_port_write_cmds(fp, 3, port_keys, vals);