• Home
  • Raw
  • Download

Lines Matching +full:parameter +full:- +full:less

1 .. SPDX-License-Identifier: GPL-2.0
21 (7) Parameter description.
23 (8) Parameter helper functions.
37 (3) Validate and pre-process the context.
52 The first is invoked to set up the filesystem-specific parts of a filesystem
54 parameter description for validation at registration time and querying by a
93 below). This must be set by the ->init_fs_context() file_system_type
115 superblock thereof). This is filled in by the ->get_tree() op. If this
116 is set, an active reference on root->d_sb must also be held.
174 These will be bitwise-OR'd with s->s_iflags when a superblock is created.
228 Called to clean up the filesystem-specific part of the filesystem context
230 context may have been removed and NULL'd out by ->get_tree().
237 filesystem-private data. An error may be returned to indicate failure to
243 immediately thereafter, so ->dup() *must* make the
244 filesystem-private data safe for ->free().
251 Called when a parameter is being added to the filesystem context. param
252 points to the key name and maybe a value object. VFS-specific options
253 will have been weeded out and fc->sb_flags updated in the context.
254 Security options will also have been weeded out and fc->security updated.
256 The parameter can be parsed with fs_parse() and fs_lookup_param(). Note
269 The return value is as for ->parse_param().
272 finds it's the standard key-val list then it may pass it off to
284 On success it should set fc->root to the mountable root and return 0. In
287 The phase on a userspace-driven context will be set to only allow this to
297 superblock can be found from fc->root->d_sb.
317 Called to initialise fc->security (which is preset to NULL) and allocate
321 reference will be non-NULL if the context is being created for superblock
324 non-NULL in the case of a submount (FS_CONTEXT_FOR_SUBMOUNT) in which case
332 Called to initialise fc->security (which is preset to NULL) and allocate
341 Called to clean up anything attached to fc->security. Note that the
350 Called for each mount parameter, including the source. The arguments are
351 as for the ->parse_param() method. It should return 0 to indicate that
352 the parameter should be passed on to the filesystem, 1 to indicate that
353 the parameter should be discarded or an error to indicate that the
354 parameter should be rejected.
366 security_sb_get_tree() and security_sb_reconfigure() are less likely to
370 via fc->root.
386 the parameter parsing and validation hooks.
413 fs_type->init_fs_context() to initialise the filesystem private data.
462 calls the ->free() operation. This is intended to be called by anyone who
481 Supply a single mount parameter to the filesystem context. This includes
483 parameter (which may be specified multiple times if the filesystem
486 param specifies the parameter key name and the value. The parameter is
492 The parameter value is typed and can be one of:
495 fs_value_is_flag Parameter not given a value
503 of param->{string,blob,name,file}. Note that the function may steal and
522 ->parse_monolithic() method is NULL.
530 the ->get_tree() method.
553 This is the core routine. If test is non-NULL, it searches for an
558 Prior to the set function being called, fc->s_fs_info will be transferred
559 to sb->s_fs_info - and fc->s_fs_info will be cleared if set returns
567 attempt to get a new superblock gets this one (and any parameter
583 Parameter Description
615 Table of parameter specifications, terminated with a null entry, where the
625 The 'name' field is a string to match exactly to the parameter key (no
626 wildcards, patterns and no case-independence) and 'opt' is the value that
636 fs_param_is_bool Boolean value result->boolean
637 fs_param_is_u32 32-bit unsigned int result->uint_32
638 fs_param_is_u32_octal 32-bit octal int result->uint_32
639 fs_param_is_u32_hex 32-bit hex int result->uint_32
640 fs_param_is_s32 32-bit signed int result->int_32
641 fs_param_is_u64 64-bit unsigned int result->uint_64
642 fs_param_is_enum Enum value name result->uint_32
643 fs_param_is_string Arbitrary string param->string
644 fs_param_is_blob Binary blob param->blob
647 fs_param_is_fd File descriptor result->int_32
648 fs_param_is_uid User ID (u32) result->uid
649 fs_param_is_gid Group ID (u32) result->gid
655 Each parameter can also be qualified with 'flags':
659 fs_param_neg_with_no result->negated set if key is prefixed with "no"
660 fs_param_neg_with_empty result->negated set if value is ""
661 fs_param_deprecated The parameter is deprecated.
687 all of which take two arguments, name string and option number - for
715 Where the array is an unsorted list of { parameter ID, name }-keyed
724 If a parameter of type fs_param_is_enum is encountered, fs_parse() will
734 Parameter Helper Functions
745 Look up a constant by name in a table of name -> integer mappings. The
766 should just be set to lie inside the low-to-high range.
776 This performs some validation checks on a parameter description. It
787 This is the main interpreter of parameters. It uses the parameter
788 description to look up a parameter by key name and to convert that to an
791 If successful, and if the parameter type indicates the result is a
794 result->{boolean,int_32,uint_32,uint_64,uid,gid}.
798 prefix removed. If this matches a parameter for which the type has flag
799 fs_param_neg_with_no set, then a match will be made and result->negated
802 If the parameter isn't matched, -ENOPARAM will be returned; if the
803 parameter is matched, but the value is erroneous, -EINVAL will be
804 returned; otherwise the parameter's option number will be returned.
814 This takes a parameter that carries a string or filename type and attempts
815 to do a path lookup on it. If the parameter expects a blockdev, a check