Searched refs:N_ALIGN (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/init/ |
H A D | initramfs.c | 50 #define N_ALIGN(len) ((((len) + 1) & ~3) + 2) macro 56 char name[N_ALIGN(PATH_MAX)]; 256 next_header = this_header + N_ALIGN(name_len) + body_len; in do_header() 265 remains = N_ALIGN(name_len) + body_len; in do_header() 271 read_into(name_buf, N_ALIGN(name_len), GotName); in do_header() 393 collected[N_ALIGN(name_len) + body_len] = '\0'; in do_symlink() 395 init_symlink(collected + N_ALIGN(name_len), collected); in do_symlink() 459 symlink_buf = kmalloc(PATH_MAX + N_ALIGN(PATH_MAX) + 1, GFP_KERNEL); in unpack_to_rootfs() 460 name_buf = kmalloc(N_ALIGN(PATH_MAX), GFP_KERNEL); in unpack_to_rootfs()
|
/kernel/linux/linux-6.6/init/ |
H A D | initramfs.c | 68 #define N_ALIGN(len) ((((len) + 1) & ~3) + 2) macro 74 char name[N_ALIGN(PATH_MAX)]; 289 next_header = this_header + N_ALIGN(name_len) + body_len; in do_header() 298 remains = N_ALIGN(name_len) + body_len; in do_header() 304 read_into(name_buf, N_ALIGN(name_len), GotName); in do_header() 425 collected[N_ALIGN(name_len) + body_len] = '\0'; in do_symlink() 427 init_symlink(collected + N_ALIGN(name_len), collected); in do_symlink() 491 symlink_buf = kmalloc(PATH_MAX + N_ALIGN(PATH_MAX) + 1, GFP_KERNEL); in unpack_to_rootfs() 492 name_buf = kmalloc(N_ALIGN(PATH_MAX), GFP_KERNEL); in unpack_to_rootfs()
|
Completed in 3 milliseconds