This function, and struct iocshFuncDef, expose internal details. Specifically iocshCmdDef::func . Which prevents changing/extending the iocsh function signature. Deprecate in favor of iocshCmd() and iocshRun().