/** * @brief Get ioctl number * * @param ifname A pointer to net name * @param priv_cmd A pointer to priv command buffer * @param ioctl_val A pointer to return ioctl number * @param subioctl_val A pointer to return sub-ioctl number * @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE */ static int marvell_get_ioctl_no(const t_s8 * ifname, const t_s8 * priv_cmd, int *ioctl_val, int *subioctl_val) { t_s32 i; t_s32 priv_cnt; int ret = MLAN_STATUS_FAILURE; priv_cnt = get_private_info(ifname); /* Are there any private ioctls? */ if (priv_cnt <= 0 || priv_cnt > IW_MAX_PRIV_NUM) { /* Could skip this message ? */ printf("%-8.8s no private ioctls.\n", ifname); } else { for (i = 0; i < priv_cnt; i++) { if (priv_args[i].name[0] && !strcmp(priv_args[i].name, priv_cmd)) { ret = marvell_get_subioctl_no(i, priv_cnt, ioctl_val, subioctl_val); break; } } } if (priv_args) { free(priv_args); priv_args = NULL; } return ret; }
DB_JAVAINFO *get_DB_JAVAINFO(JNIEnv *jnienv, jobject obj) { return ((DB_JAVAINFO *)get_private_info(jnienv, name_DB, obj)); }