/external/ltp/testcases/kernel/module/create_module/ |
create_module01.c | 41 * Initialize modname for each child process 80 static char modname[20]; /* Name of the module */ variable 96 TEST(create_module(modname, MODSIZE)); 105 if (delete_module(modname) != 0) { 108 modname); 136 if (sprintf(modname, "%s_%d", BASEMODNAME, getpid()) == -1) { 153 if (delete_module(modname) == -1) { 157 "entry for %s errno returned %d", modname,
|
create_module02.c | 59 * Initialize modname for each child process 108 char *modname; member in struct:test_case_t 122 static char modname[20]; /* Name of the module */ variable 132 {modname, MODSIZE, (caddr_t) - 1, EPERM, 141 {modname, MODSIZE, (caddr_t) - 1, EEXIST, 143 {modname, SMALLMODSIZE, (caddr_t) - 1, EINVAL, 152 {modname, MAXMODSIZE, (caddr_t) - 1, ENOMEM, 176 TEST(create_module(tdat[testno].modname, 222 if (create_module(modname, MODSIZE) == -1) { 224 " for %s", modname); [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/sepolgen/ |
module.py | 40 def is_valid_name(modname): 43 m = re.findall("[^a-zA-Z0-9_\-\.]", modname) 44 if len(m) == 0 and modname[0].isalpha(): 50 def __init__(self, modname): 51 self.modname = modname 58 return self.dirname + "/" + self.modname + ".te" 61 return self.dirname + "/" + self.modname + ".fc" 64 return self.dirname + "/" + self.modname + ".if" 67 return self.dirname + "/" + self.modname + ".pp [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/ |
__init__.py | 28 modname = "distutils.tests." + fn[:-3]
29 __import__(modname)
30 module = sys.modules[modname]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/ |
__init__.py | 13 modname = "unittest.test." + fn[:-3]
14 __import__(modname)
15 module = sys.modules[modname]
|
/external/python/cpython2/Lib/distutils/tests/ |
__init__.py | 28 modname = "distutils.tests." + fn[:-3] 29 __import__(modname) 30 module = sys.modules[modname]
|
/external/python/cpython2/Lib/unittest/test/ |
__init__.py | 13 modname = "unittest.test." + fn[:-3] 14 __import__(modname) 15 module = sys.modules[modname]
|
/prebuilts/gdb/darwin-x86/lib/python2.7/unittest/test/ |
__init__.py | 13 modname = "unittest.test." + fn[:-3] 14 __import__(modname) 15 module = sys.modules[modname]
|
/prebuilts/gdb/linux-x86/lib/python2.7/unittest/test/ |
__init__.py | 13 modname = "unittest.test." + fn[:-3] 14 __import__(modname) 15 module = sys.modules[modname]
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/distutils/tests/ |
__init__.py | 28 modname = "distutils.tests." + fn[:-3] 29 __import__(modname) 30 module = sys.modules[modname]
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/unittest/test/ |
__init__.py | 13 modname = "unittest.test." + fn[:-3] 14 __import__(modname) 15 module = sys.modules[modname]
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/distutils/tests/ |
__init__.py | 28 modname = "distutils.tests." + fn[:-3] 29 __import__(modname) 30 module = sys.modules[modname]
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/unittest/test/ |
__init__.py | 13 modname = "unittest.test." + fn[:-3] 14 __import__(modname) 15 module = sys.modules[modname]
|
/external/kmod/testsuite/ |
delete_module.c | 56 const char *modname; local 62 modname = p; 63 if (modname == NULL || modname[0] == '\0') 67 if (modname[modnamelen] != ':') 70 p = modname + modnamelen + 1; 93 memcpy(mod->name, modname, modnamelen); 102 static struct mod *find_module(struct mod *_modules, const char *modname) 107 if (streq(mod->name, modname)) 141 * FIXME: change /sys/module/<modname> to fake-remove a modul [all...] |
init_module.c | 72 const char *modname; local 78 modname = p; 79 if (modname == NULL || modname[0] == '\0') 83 if (modname[modnamelen] != ':') 86 p = modname + modnamelen + 1; 108 memcpy(mod->name, modname, modnamelen); 150 static int create_sysfs_files(const char *modname) 157 strcpy(buf + len, modname); 158 len += strlen(modname); 238 const char *modname; local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test___all__.py | 24 def check_all(self, modname):
29 exec "import %s" % modname in names
34 raise FailedImport(modname)
35 if not hasattr(sys.modules[modname], "__all__"):
36 raise NoAll(modname)
39 exec "from %s import *" % modname in names
43 modname, e.__class__.__name__, e))
47 all = set(sys.modules[modname].__all__)
89 for path, modname in self.walk_modules(lib_dir, ""):
90 m = modname
[all...] |
/external/python/cpython2/Lib/test/ |
test___all__.py | 24 def check_all(self, modname): 29 exec "import %s" % modname in names 34 raise FailedImport(modname) 35 if not hasattr(sys.modules[modname], "__all__"): 36 raise NoAll(modname) 39 exec "from %s import *" % modname in names 43 modname, e.__class__.__name__, e)) 47 all = set(sys.modules[modname].__all__) 90 for path, modname in self.walk_modules(lib_dir, ""): 91 m = modname [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test___all__.py | 24 def check_all(self, modname): 29 exec "import %s" % modname in names 34 raise FailedImport(modname) 35 if not hasattr(sys.modules[modname], "__all__"): 36 raise NoAll(modname) 39 exec "from %s import *" % modname in names 43 modname, e.__class__.__name__, e)) 47 all = set(sys.modules[modname].__all__) 89 for path, modname in self.walk_modules(lib_dir, ""): 90 m = modname [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test___all__.py | 24 def check_all(self, modname): 29 exec "import %s" % modname in names 34 raise FailedImport(modname) 35 if not hasattr(sys.modules[modname], "__all__"): 36 raise NoAll(modname) 39 exec "from %s import *" % modname in names 43 modname, e.__class__.__name__, e)) 47 all = set(sys.modules[modname].__all__) 89 for path, modname in self.walk_modules(lib_dir, ""): 90 m = modname [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test___all__.py | 24 def check_all(self, modname): 29 exec "import %s" % modname in names 34 raise FailedImport(modname) 35 if not hasattr(sys.modules[modname], "__all__"): 36 raise NoAll(modname) 39 exec "from %s import *" % modname in names 43 modname, e.__class__.__name__, e)) 47 all = set(sys.modules[modname].__all__) 89 for path, modname in self.walk_modules(lib_dir, ""): 90 m = modname [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test___all__.py | 24 def check_all(self, modname): 29 exec "import %s" % modname in names 34 raise FailedImport(modname) 35 if not hasattr(sys.modules[modname], "__all__"): 36 raise NoAll(modname) 39 exec "from %s import *" % modname in names 43 modname, e.__class__.__name__, e)) 47 all = set(sys.modules[modname].__all__) 89 for path, modname in self.walk_modules(lib_dir, ""): 90 m = modname [all...] |
/external/ltp/testcases/kernel/module/delete_module/ |
delete_module02.c | 56 static char modname[20]; variable 64 char *modname; member in struct:test_case_t 70 { modname, ENOENT, "nonexistent module", NULL, NULL}, 75 { modname, EPERM, "non-superuser", setup1, cleanup1}, 98 tdat[i].modname, 0)); 145 if (sprintf(modname, "%s_%d", BASEMODNAME, getpid()) <= 0) 148 tdat[2].modname = SAFE_MMAP(cleanup, 0, 1, PROT_NONE,
|
/external/selinux/python/sepolgen/src/sepolgen/ |
module.py | 40 def is_valid_name(modname): 43 m = re.findall(r"[^a-zA-Z0-9_\-\.]", modname) 44 if len(m) == 0 and modname[0].isalpha(): 50 def __init__(self, modname): 51 self.modname = modname 58 return self.dirname + "/" + self.modname + ".te" 61 return self.dirname + "/" + self.modname + ".fc" 64 return self.dirname + "/" + self.modname + ".if" 67 return self.dirname + "/" + self.modname + ".pp [all...] |
/external/python/cpython2/Python/ |
makeopcodetargets.py | 13 def find_module(modname): 18 return imp.load_module(modname, *imp.find_module(modname, [modpath]))
|
/external/elfutils/tests/ |
line2addr.c | 45 const char *modname = dwfl_module_info (mod, NULL, NULL, NULL, local 49 printf ("%s(%s)+%#" PRIx64, modname, secname, address); 51 printf ("%s+%#" PRIx64, modname, address); 70 const char *modname, Dwarf_Addr base __attribute__ ((unused)), 91 if (modname[0] != '\0') 92 printf (" (%s:", modname); 94 printf (" %s%s:%d", modname[0] != '\0' ? "" : "(", 98 if (modname[0] != '\0'
|