fmd_agent_chip_count
extern int fmd_agent_chip_count(fmd_agent_hdl_t *, uint8_t *);
if (fmd_agent_chip_count(hdl, &state->pes_nchip) != 0) {
if (fmd_agent_chip_count(hdl, &nchip) == -1) {