Lines Matching +full:bootloader +full:- +full:key
1 // SPDX-License-Identifier: GPL-2.0
3 * /proc/bootconfig - Extra boot configuration
23 #define rest(dst, end) ((end) > (dst) ? (end) - (dst) : 0)
29 char *key, *end = dst + size; in copy_xbc_key_value_list() local
34 key = kzalloc(XBC_KEYLEN_MAX, GFP_KERNEL); in copy_xbc_key_value_list()
35 if (!key) in copy_xbc_key_value_list()
36 return -ENOMEM; in copy_xbc_key_value_list()
39 ret = xbc_node_compose_key(leaf, key, XBC_KEYLEN_MAX); in copy_xbc_key_value_list()
42 ret = snprintf(dst, rest(dst, end), "%s = ", key); in copy_xbc_key_value_list()
67 ret = snprintf(dst, rest(dst, end), "# Parameters from bootloader:\n# %s\n", in copy_xbc_key_value_list()
73 kfree(key); in copy_xbc_key_value_list()
75 return ret < 0 ? ret : dst - (end - size); in copy_xbc_key_value_list()
89 return -ENOMEM; in proc_boot_config_init()