Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 13 of 13) sorted by relevance

/fs/nilfs2/
Dioctl.c47 struct nilfs_argv *argv, int dir, in nilfs_ioctl_wrap_copy() argument
53 void __user *base = (void __user *)(unsigned long)argv->v_base; in nilfs_ioctl_wrap_copy()
59 if (argv->v_nmembs == 0) in nilfs_ioctl_wrap_copy()
62 if (argv->v_size > PAGE_SIZE) in nilfs_ioctl_wrap_copy()
70 if (argv->v_index > ~(__u64)0 - argv->v_nmembs) in nilfs_ioctl_wrap_copy()
76 maxmembs = PAGE_SIZE / argv->v_size; in nilfs_ioctl_wrap_copy()
80 pos = argv->v_index; in nilfs_ioctl_wrap_copy()
81 for (i = 0; i < argv->v_nmembs; i += n) { in nilfs_ioctl_wrap_copy()
82 n = (argv->v_nmembs - i < maxmembs) ? in nilfs_ioctl_wrap_copy()
83 argv->v_nmembs - i : maxmembs; in nilfs_ioctl_wrap_copy()
[all …]
Dsegment.c2469 int nilfs_clean_segments(struct super_block *sb, struct nilfs_argv *argv, in nilfs_clean_segments() argument
2486 err = nilfs_ioctl_prepare_clean_segments(nilfs, argv, kbufs); in nilfs_clean_segments()
2493 sci->sc_nfreesegs = argv[4].v_nmembs; in nilfs_clean_segments()
/fs/
Dexec.c408 static const char __user *get_user_arg_ptr(struct user_arg_ptr argv, int nr) in get_user_arg_ptr() argument
413 if (unlikely(argv.is_compat)) { in get_user_arg_ptr()
416 if (get_user(compat, argv.ptr.compat + nr)) in get_user_arg_ptr()
423 if (get_user(native, argv.ptr.native + nr)) in get_user_arg_ptr()
432 static int count(struct user_arg_ptr argv, int max) in count() argument
436 if (argv.ptr.native != NULL) { in count()
438 const char __user *p = get_user_arg_ptr(argv, i); in count()
458 static int count_strings_kernel(const char *const *argv) in count_strings_kernel() argument
462 if (!argv) in count_strings_kernel()
465 for (i = 0; argv[i]; ++i) { in count_strings_kernel()
[all …]
Dbinfmt_aout.c61 char __user * __user *argv; in create_aout_tables() local
84 argv = (char __user * __user *) sp; in create_aout_tables()
87 put_user((unsigned long) argv,--sp); in create_aout_tables()
93 put_user(p,argv++); in create_aout_tables()
98 put_user(NULL,argv); in create_aout_tables()
Dcoredump.c198 size_t **argv, int *argc) in format_corename() argument
215 (*argv) = kmalloc_array(argvs, sizeof(**argv), GFP_KERNEL); in format_corename()
216 if (!(*argv)) in format_corename()
218 (*argv)[(*argc)++] = 0; in format_corename()
242 (*argv)[(*argc)++] = cn->used; in format_corename()
588 size_t *argv = NULL; in do_coredump() local
636 ispipe = format_corename(&cn, &cprm, &argv, &argc); in do_coredump()
690 helper_argv[argi] = cn.corename + argv[argi]; in do_coredump()
823 kfree(argv); in do_coredump()
Dbinfmt_flat.c144 unsigned long argv, envp; in create_flat_tables() local
145 argv = (unsigned long)(sp + 2); in create_flat_tables()
147 if (put_user(argv, sp++) || put_user(envp, sp++)) in create_flat_tables()
Dbinfmt_elf_fdpic.c503 elf_caddr_t __user *argv, *envp; in create_elf_fdpic_tables() local
675 argv = (elf_caddr_t __user *) csp; in create_elf_fdpic_tables()
694 if (put_user((elf_caddr_t) p, argv++)) in create_elf_fdpic_tables()
701 if (put_user(NULL, argv)) in create_elf_fdpic_tables()
/fs/ocfs2/
Dstackglue.c421 char *argv[5], *envp[3]; in ocfs2_leave_group() local
423 argv[0] = ocfs2_hb_ctl_path; in ocfs2_leave_group()
424 argv[1] = "-K"; in ocfs2_leave_group()
425 argv[2] = "-u"; in ocfs2_leave_group()
426 argv[3] = (char *)group; in ocfs2_leave_group()
427 argv[4] = NULL; in ocfs2_leave_group()
434 ret = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC); in ocfs2_leave_group()
439 ret, argv[0], argv[1], argv[2], argv[3]); in ocfs2_leave_group()
/fs/nfs/
Dcache_lib.c42 char *argv[] = { in nfs_cache_upcall() local
52 ret = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_EXEC); in nfs_cache_upcall()
/fs/nfsd/
Dnfs4layouts.c618 char *argv[8]; in nfsd4_cb_layout_fail() local
627 argv[0] = (char *)nfsd_recall_failed; in nfsd4_cb_layout_fail()
628 argv[1] = addr_str; in nfsd4_cb_layout_fail()
629 argv[2] = ls->ls_file->nf_file->f_path.mnt->mnt_sb->s_id; in nfsd4_cb_layout_fail()
630 argv[3] = NULL; in nfsd4_cb_layout_fail()
632 error = call_usermodehelper(nfsd_recall_failed, argv, envp, in nfsd4_cb_layout_fail()
Dnfs4recover.c1799 char *argv[4]; in nfsd4_umh_cltrack_upcall() local
1816 argv[0] = (char *)cltrack_prog; in nfsd4_umh_cltrack_upcall()
1817 argv[1] = cmd; in nfsd4_umh_cltrack_upcall()
1818 argv[2] = arg; in nfsd4_umh_cltrack_upcall()
1819 argv[3] = NULL; in nfsd4_umh_cltrack_upcall()
1821 ret = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC); in nfsd4_umh_cltrack_upcall()
Dnfssvc.c1040 struct kvec *argv = &rqstp->rq_arg.head[0]; in nfsd_dispatch() local
1055 if (!proc->pc_decode(rqstp, argv->iov_base)) in nfsd_dispatch()
/fs/unicode/
Dmkutf8data.c3347 int main(int argc, char *argv[]) in main() argument
3352 argv0 = argv[0]; in main()
3354 while ((opt = getopt(argc, argv, "a:c:d:f:hn:o:p:t:v")) != -1) { in main()