Home
last modified time | relevance | path

Searched refs:file_idx (Results 1 – 3 of 3) sorted by relevance

/AliOS-Things-master/components/ulog/src/
A Dulog_fs_cfg.c27 unsigned short file_idx; member
89 … if(empty_room>(result=snprintf(&buf[off], empty_room, LOG_LIST_NODE,p->file_idx, in aos_get_ulog_list()
123 ulog_cfg_header->file_idx = idx; in update_mm_cfg()
141 …if (p->type == type && (ulog_cfg_para_none == para_type || p->file_idx == idx)) { /* found it alre… in update_mm_cfg()
144 p->file_idx = idx; in update_mm_cfg()
165 p->next->file_idx = idx; in update_mm_cfg()
221 SESSION_FS_DEBUG("check cfg item in mm type %d idx %d\n", p->type, p->file_idx); in load_cfg_2_mm()
252 …ItemToObject(ulog_cfg_obj, get_ulog_cfg_key(p->type)->desription, cJSON_CreateNumber(p->file_idx)); in cfg_mm_2_file()
276 …ItemToObject(ulog_cfg_obj, get_ulog_cfg_key(p->type)->desription, cJSON_CreateNumber(p->file_idx)); in cfg_mm_2_file()
372 rc = p->file_idx; in get_working_from_cfg_mm()
A Dulog_session_file.c259 static bool log_file_exist(const uint16_t file_idx) in log_file_exist() argument
265 if (file_idx <= LOCAL_FILE_CNT) { in log_file_exist()
266 … snprintf(ulog_file_name, sizeof(ulog_file_name), ULOG_FILE_FORMAT, guc_logfile_path, file_idx); in log_file_exist()
295 static int open_create_log_file(const ulog_idx_type file_idx, const bool keep_open) in open_create_log_file() argument
300 snprintf(ulog_file_name, sizeof(ulog_file_name), ULOG_FILE_FORMAT, guc_logfile_path, file_idx); in open_create_log_file()
319 int open_log_file(const ulog_idx_type file_idx, int flag, const off_t off) in open_log_file() argument
324 snprintf(ulog_file_name, sizeof(ulog_file_name), ULOG_FILE_FORMAT, guc_logfile_path, file_idx); in open_log_file()
/AliOS-Things-master/components/ulog/internal/
A Dulog_session_file.h111 int open_log_file(const ulog_idx_type file_idx, int flag, const off_t off);

Completed in 5 milliseconds