]> Git Repo - J-linux.git/blob - drivers/gpu/drm/nouveau/include/nvkm/core/option.h
Merge tag 'vfs-6.13-rc7.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
[J-linux.git] / drivers / gpu / drm / nouveau / include / nvkm / core / option.h
1 /* SPDX-License-Identifier: MIT */
2 #ifndef __NVKM_OPTION_H__
3 #define __NVKM_OPTION_H__
4 #include <core/os.h>
5
6 const char *nvkm_stropt(const char *optstr, const char *opt, int *len);
7 bool nvkm_boolopt(const char *optstr, const char *opt, bool value);
8 long nvkm_longopt(const char *optstr, const char *opt, long value);
9 int  nvkm_dbgopt(const char *optstr, const char *sub);
10
11 /* compares unterminated string 'str' with zero-terminated string 'cmp' */
12 static inline int
13 strncasecmpz(const char *str, const char *cmp, size_t len)
14 {
15         if (strlen(cmp) != len)
16                 return len;
17         return strncasecmp(str, cmp, len);
18 }
19 #endif
This page took 0.03121 seconds and 4 git commands to generate.