Lines Matching refs:args

61 	int (*handler)(struct cachefiles_cache *cache, char *args);
283 char *data, *args, *cp; in cachefiles_daemon_write() local
316 for (args = data; *args; args++) in cachefiles_daemon_write()
317 if (isspace(*args)) in cachefiles_daemon_write()
319 if (*args) { in cachefiles_daemon_write()
320 if (args == data) in cachefiles_daemon_write()
322 *args = '\0'; in cachefiles_daemon_write()
323 args = skip_spaces(++args); in cachefiles_daemon_write()
341 ret = cmd->handler(cache, args); in cachefiles_daemon_write()
382 char *args) in cachefiles_daemon_range_error() argument
393 static int cachefiles_daemon_frun(struct cachefiles_cache *cache, char *args) in cachefiles_daemon_frun() argument
397 _enter(",%s", args); in cachefiles_daemon_frun()
399 if (!*args) in cachefiles_daemon_frun()
402 frun = simple_strtoul(args, &args, 10); in cachefiles_daemon_frun()
403 if (args[0] != '%' || args[1] != '\0') in cachefiles_daemon_frun()
407 return cachefiles_daemon_range_error(cache, args); in cachefiles_daemon_frun()
417 static int cachefiles_daemon_fcull(struct cachefiles_cache *cache, char *args) in cachefiles_daemon_fcull() argument
421 _enter(",%s", args); in cachefiles_daemon_fcull()
423 if (!*args) in cachefiles_daemon_fcull()
426 fcull = simple_strtoul(args, &args, 10); in cachefiles_daemon_fcull()
427 if (args[0] != '%' || args[1] != '\0') in cachefiles_daemon_fcull()
431 return cachefiles_daemon_range_error(cache, args); in cachefiles_daemon_fcull()
441 static int cachefiles_daemon_fstop(struct cachefiles_cache *cache, char *args) in cachefiles_daemon_fstop() argument
445 _enter(",%s", args); in cachefiles_daemon_fstop()
447 if (!*args) in cachefiles_daemon_fstop()
450 fstop = simple_strtoul(args, &args, 10); in cachefiles_daemon_fstop()
451 if (args[0] != '%' || args[1] != '\0') in cachefiles_daemon_fstop()
455 return cachefiles_daemon_range_error(cache, args); in cachefiles_daemon_fstop()
465 static int cachefiles_daemon_brun(struct cachefiles_cache *cache, char *args) in cachefiles_daemon_brun() argument
469 _enter(",%s", args); in cachefiles_daemon_brun()
471 if (!*args) in cachefiles_daemon_brun()
474 brun = simple_strtoul(args, &args, 10); in cachefiles_daemon_brun()
475 if (args[0] != '%' || args[1] != '\0') in cachefiles_daemon_brun()
479 return cachefiles_daemon_range_error(cache, args); in cachefiles_daemon_brun()
489 static int cachefiles_daemon_bcull(struct cachefiles_cache *cache, char *args) in cachefiles_daemon_bcull() argument
493 _enter(",%s", args); in cachefiles_daemon_bcull()
495 if (!*args) in cachefiles_daemon_bcull()
498 bcull = simple_strtoul(args, &args, 10); in cachefiles_daemon_bcull()
499 if (args[0] != '%' || args[1] != '\0') in cachefiles_daemon_bcull()
503 return cachefiles_daemon_range_error(cache, args); in cachefiles_daemon_bcull()
513 static int cachefiles_daemon_bstop(struct cachefiles_cache *cache, char *args) in cachefiles_daemon_bstop() argument
517 _enter(",%s", args); in cachefiles_daemon_bstop()
519 if (!*args) in cachefiles_daemon_bstop()
522 bstop = simple_strtoul(args, &args, 10); in cachefiles_daemon_bstop()
523 if (args[0] != '%' || args[1] != '\0') in cachefiles_daemon_bstop()
527 return cachefiles_daemon_range_error(cache, args); in cachefiles_daemon_bstop()
537 static int cachefiles_daemon_dir(struct cachefiles_cache *cache, char *args) in cachefiles_daemon_dir() argument
541 _enter(",%s", args); in cachefiles_daemon_dir()
543 if (!*args) { in cachefiles_daemon_dir()
553 dir = kstrdup(args, GFP_KERNEL); in cachefiles_daemon_dir()
565 static int cachefiles_daemon_secctx(struct cachefiles_cache *cache, char *args) in cachefiles_daemon_secctx() argument
569 _enter(",%s", args); in cachefiles_daemon_secctx()
571 if (!*args) { in cachefiles_daemon_secctx()
581 secctx = kstrdup(args, GFP_KERNEL); in cachefiles_daemon_secctx()
593 static int cachefiles_daemon_tag(struct cachefiles_cache *cache, char *args) in cachefiles_daemon_tag() argument
597 _enter(",%s", args); in cachefiles_daemon_tag()
599 if (!*args) { in cachefiles_daemon_tag()
607 tag = kstrdup(args, GFP_KERNEL); in cachefiles_daemon_tag()
619 static int cachefiles_daemon_cull(struct cachefiles_cache *cache, char *args) in cachefiles_daemon_cull() argument
625 _enter(",%s", args); in cachefiles_daemon_cull()
627 if (strchr(args, '/')) in cachefiles_daemon_cull()
646 ret = cachefiles_cull(cache, path.dentry, args); in cachefiles_daemon_cull()
667 static int cachefiles_daemon_debug(struct cachefiles_cache *cache, char *args) in cachefiles_daemon_debug() argument
671 _enter(",%s", args); in cachefiles_daemon_debug()
673 mask = simple_strtoul(args, &args, 0); in cachefiles_daemon_debug()
674 if (args[0] != '\0') in cachefiles_daemon_debug()
690 static int cachefiles_daemon_inuse(struct cachefiles_cache *cache, char *args) in cachefiles_daemon_inuse() argument
698 if (strchr(args, '/')) in cachefiles_daemon_inuse()
717 ret = cachefiles_check_in_use(cache, path.dentry, args); in cachefiles_daemon_inuse()
737 static int cachefiles_daemon_bind(struct cachefiles_cache *cache, char *args) in cachefiles_daemon_bind() argument
746 args); in cachefiles_daemon_bind()
770 if (!strcmp(args, "ondemand")) { in cachefiles_daemon_bind()
772 } else if (*args) { in cachefiles_daemon_bind()
776 } else if (*args) { in cachefiles_daemon_bind()