Function

FwupdPluginkernel_parse_cmdline

Declaration [src]

GHashTable*
fu_kernel_parse_cmdline (
  const gchar* buf,
  gsize bufsz
)

Description [src]

Parses all the kernel key/values into a hash table, respecting double quotes when required.

Available since:1.9.1

Parameters

buf const gchar*
 

Cmdline to parse.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
bufsz gsize
 

Size of bufsz.

Return value

Returns: GHashTable*
 

Keys from the cmdline.

 The caller of the function takes ownership of the data container, but not the data inside it.