Home
last modified time | relevance | path

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

/system/extras/kexec_tools/
Dkexecload.c75 struct kexec_segment segment[2]; in main() local
143 segment[0].buf = zimage_buffer; in main()
144 segment[0].bufsz = zimage_size; in main()
145 segment[0].mem = (void *) ((uintptr_t) start_address + KEXEC_ARM_ZIMAGE_OFFSET); in main()
146 segment[0].memsz = zimage_size; in main()
148 segment[1].buf = atag_buffer; in main()
149 segment[1].bufsz = atag_size; in main()
150 segment[1].mem = (void *) ((uintptr_t) start_address + KEXEC_ARM_ATAGS_OFFSET); in main()
151 segment[1].memsz = atag_size; in main()
154 2, (void *) segment, KEXEC_ARCH_DEFAULT | KEXEC_ON_CRASH); in main()
Dkexec.h20 struct kexec_segment *segment, unsigned long flags) { in kexec_load() argument
21 return syscall(__NR_kexec_load, entry, nr_segments, segment, flags); in kexec_load()
/system/core/libcutils/
Dfs.c207 char* segment = buf + 1; in fs_mkdirs() local
208 char* p = segment; in fs_mkdirs()
213 if (!strcmp(segment, "..") || !strcmp(segment, ".") || !strcmp(segment, "")) { in fs_mkdirs()
219 if (fstatat(fd, segment, &sb, AT_SYMLINK_NOFOLLOW) != 0) { in fs_mkdirs()
222 if (mkdirat(fd, segment, mode) != 0) { in fs_mkdirs()
251 if ((next_fd = openat(fd, segment, O_NOFOLLOW | O_CLOEXEC)) == -1) { in fs_mkdirs()
261 segment = p + 1; in fs_mkdirs()