Lines Matching refs:buf
45 size_t read_big_sysctl(const int *mib, size_t mib_len, const char* name, char **buf);
48 read_big_sysctl(const int *mib, size_t mib_len, const char* name, char **buf) in read_big_sysctl() argument
55 *buf = (char*)malloc(len); in read_big_sysctl()
56 T_ASSERT_NE_PTR((void*)*buf, NULL, "allocation for sysctl %zu", len); in read_big_sysctl()
57 rc = sysctl(mib, mib_len, *buf, &len, NULL, 0); in read_big_sysctl()
76 char *buf = NULL; variable
77 size_t sz = read_big_sysctl(mib, mib_len, "vm.compressor_segments", &buf);
81 uint32_t hdr_magic = *((uint32_t*)buf);
87 const struct c_segment_info* cseg = (const struct c_segment_info*)(buf + offset);
102 char *buf = NULL; variable
103 size_t sz = read_big_sysctl(mib, mib_len, "vm.compressor_segments.<pid>", &buf);
107 uint32_t hdr_magic = *((uint32_t*)buf);
112 struct vm_map_info_hdr* hdr = (struct vm_map_info_hdr*)(buf + offset);