Home
last modified time | relevance | path

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

/fs/nilfs2/
Dioctl.c48 struct nilfs_argv *argv, int dir, in nilfs_ioctl_wrap_copy() argument
54 void __user *base = (void __user *)(unsigned long)argv->v_base; in nilfs_ioctl_wrap_copy()
60 if (argv->v_nmembs == 0) in nilfs_ioctl_wrap_copy()
63 if (argv->v_size > PAGE_SIZE) in nilfs_ioctl_wrap_copy()
71 if (argv->v_index > ~(__u64)0 - argv->v_nmembs) in nilfs_ioctl_wrap_copy()
77 maxmembs = PAGE_SIZE / argv->v_size; in nilfs_ioctl_wrap_copy()
81 pos = argv->v_index; in nilfs_ioctl_wrap_copy()
82 for (i = 0; i < argv->v_nmembs; i += n) { in nilfs_ioctl_wrap_copy()
83 n = (argv->v_nmembs - i < maxmembs) ? in nilfs_ioctl_wrap_copy()
84 argv->v_nmembs - i : maxmembs; in nilfs_ioctl_wrap_copy()
[all …]
Dsegment.c2462 int nilfs_clean_segments(struct super_block *sb, struct nilfs_argv *argv, in nilfs_clean_segments() argument
2479 err = nilfs_ioctl_prepare_clean_segments(nilfs, argv, kbufs); in nilfs_clean_segments()
2486 sci->sc_nfreesegs = argv[4].v_nmembs; in nilfs_clean_segments()
/fs/
Dexec.c410 static const char __user *get_user_arg_ptr(struct user_arg_ptr argv, int nr) in get_user_arg_ptr() argument
415 if (unlikely(argv.is_compat)) { in get_user_arg_ptr()
418 if (get_user(compat, argv.ptr.compat + nr)) in get_user_arg_ptr()
425 if (get_user(native, argv.ptr.native + nr)) in get_user_arg_ptr()
434 static int count(struct user_arg_ptr argv, int max) in count() argument
438 if (argv.ptr.native != NULL) { in count()
440 const char __user *p = get_user_arg_ptr(argv, i); in count()
460 static int count_strings_kernel(const char *const *argv) in count_strings_kernel() argument
464 if (!argv) in count_strings_kernel()
467 for (i = 0; argv[i]; ++i) { in count_strings_kernel()
[all …]
Dcoredump.c199 size_t **argv, int *argc) in format_corename() argument
216 (*argv) = kmalloc_array(argvs, sizeof(**argv), GFP_KERNEL); in format_corename()
217 if (!(*argv)) in format_corename()
219 (*argv)[(*argc)++] = 0; in format_corename()
243 (*argv)[(*argc)++] = cn->used; in format_corename()
520 size_t *argv = NULL; in do_coredump() local
568 ispipe = format_corename(&cn, &cprm, &argv, &argc); in do_coredump()
622 helper_argv[argi] = cn.corename + argv[argi]; in do_coredump()
778 kfree(argv); in do_coredump()
Dbinfmt_flat.c127 unsigned long argv, envp; in create_flat_tables() local
128 argv = (unsigned long)(sp + 2); in create_flat_tables()
130 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
678 argv = (elf_caddr_t __user *) csp; in create_elf_fdpic_tables()
697 if (put_user((elf_caddr_t) p, argv++)) in create_elf_fdpic_tables()
704 if (put_user(NULL, argv)) in create_elf_fdpic_tables()
/fs/ocfs2/
Dstackglue.c419 char *argv[5], *envp[3]; in ocfs2_leave_group() local
421 argv[0] = ocfs2_hb_ctl_path; in ocfs2_leave_group()
422 argv[1] = "-K"; in ocfs2_leave_group()
423 argv[2] = "-u"; in ocfs2_leave_group()
424 argv[3] = (char *)group; in ocfs2_leave_group()
425 argv[4] = NULL; in ocfs2_leave_group()
432 ret = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC); in ocfs2_leave_group()
437 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.c619 char *argv[8]; in nfsd4_cb_layout_fail() local
628 argv[0] = (char *)nfsd_recall_failed; in nfsd4_cb_layout_fail()
629 argv[1] = addr_str; in nfsd4_cb_layout_fail()
630 argv[2] = ls->ls_file->nf_file->f_path.mnt->mnt_sb->s_id; in nfsd4_cb_layout_fail()
631 argv[3] = NULL; in nfsd4_cb_layout_fail()
633 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()
/fs/smb/server/
Dksmbd_work.h84 void (*cancel_fn)(void **argv);
Dsmb2pdu.c6841 static void smb2_remove_blocked_lock(void **argv) in smb2_remove_blocked_lock() argument
6843 struct file_lock *flock = (struct file_lock *)argv[0]; in smb2_remove_blocked_lock()
7084 void **argv; in smb2_lock() local
7090 argv = kmalloc(sizeof(void *), GFP_KERNEL); in smb2_lock()
7091 if (!argv) { in smb2_lock()
7095 argv[0] = flock; in smb2_lock()
7099 argv); in smb2_lock()
7101 kfree(argv); in smb2_lock()
/fs/unicode/
Dmkutf8data.c3361 int main(int argc, char *argv[]) in main() argument
3366 argv0 = argv[0]; in main()
3368 while ((opt = getopt(argc, argv, "a:c:d:f:hn:o:p:t:v")) != -1) { in main()