Lines Matching refs:buff
106 char *buff; in get_klog_buff() local
112 buff = malloc(len); in get_klog_buff()
113 if (!buff) in get_klog_buff()
116 ret = klogctl(CMD_ACTION_READ_ALL, buff, len); in get_klog_buff()
118 free(buff); in get_klog_buff()
123 return buff; in get_klog_buff()
130 char *buff; in get_flog_buff() local
141 buff = malloc(len); in get_flog_buff()
142 if (!buff) in get_flog_buff()
145 memset(buff, 0, len); in get_flog_buff()
146 ret = read(fd, buff, len - 1); in get_flog_buff()
152 return buff; in get_flog_buff()
154 free(buff); in get_flog_buff()
165 static void put_log_buff(char *buff) in put_log_buff() argument
167 free(buff); in put_log_buff()