Lines Matching refs:param

278 			       struct fs_parameter *param)  in vfs_fsconfig_locked()  argument
297 return vfs_parse_fs_param(fc, param); in vfs_fsconfig_locked()
355 struct fs_parameter param = { in SYSCALL_DEFINE5() local
413 param.key = strndup_user(_key, 256); in SYSCALL_DEFINE5()
414 if (IS_ERR(param.key)) in SYSCALL_DEFINE5()
415 return PTR_ERR(param.key); in SYSCALL_DEFINE5()
420 param.type = fs_value_is_flag; in SYSCALL_DEFINE5()
423 param.type = fs_value_is_string; in SYSCALL_DEFINE5()
424 param.string = strndup_user(_value, 256); in SYSCALL_DEFINE5()
425 if (IS_ERR(param.string)) { in SYSCALL_DEFINE5()
426 ret = PTR_ERR(param.string); in SYSCALL_DEFINE5()
429 param.size = strlen(param.string); in SYSCALL_DEFINE5()
432 param.type = fs_value_is_blob; in SYSCALL_DEFINE5()
433 param.size = aux; in SYSCALL_DEFINE5()
434 param.blob = memdup_user_nul(_value, aux); in SYSCALL_DEFINE5()
435 if (IS_ERR(param.blob)) { in SYSCALL_DEFINE5()
436 ret = PTR_ERR(param.blob); in SYSCALL_DEFINE5()
444 param.type = fs_value_is_filename; in SYSCALL_DEFINE5()
445 param.name = getname_flags(_value, lookup_flags); in SYSCALL_DEFINE5()
446 if (IS_ERR(param.name)) { in SYSCALL_DEFINE5()
447 ret = PTR_ERR(param.name); in SYSCALL_DEFINE5()
450 param.dirfd = aux; in SYSCALL_DEFINE5()
451 param.size = strlen(param.name->name); in SYSCALL_DEFINE5()
454 param.type = fs_value_is_file; in SYSCALL_DEFINE5()
456 param.file = fget(aux); in SYSCALL_DEFINE5()
457 if (!param.file) in SYSCALL_DEFINE5()
459 param.dirfd = aux; in SYSCALL_DEFINE5()
467 ret = vfs_fsconfig_locked(fc, cmd, &param); in SYSCALL_DEFINE5()
478 kfree(param.string); in SYSCALL_DEFINE5()
482 if (param.name) in SYSCALL_DEFINE5()
483 putname(param.name); in SYSCALL_DEFINE5()
486 if (param.file) in SYSCALL_DEFINE5()
487 fput(param.file); in SYSCALL_DEFINE5()
493 kfree(param.key); in SYSCALL_DEFINE5()