Lines Matching defs:nls
2 * linux/fs/nls/nls_base.c
13 #include <linux/nls.h>
235 int __register_nls(struct nls_table *nls, struct module *owner)
239 if (nls->next)
242 nls->owner = owner;
245 if (nls == *tmp) {
251 nls->next = tables;
252 tables = nls;
258 int unregister_nls(struct nls_table * nls)
264 if (nls == *tmp) {
265 *tmp = nls->next;
277 struct nls_table *nls;
279 for (nls = tables; nls; nls = nls->next) {
280 if (!strcmp(nls->charset, charset))
282 if (nls->alias && !strcmp(nls->alias, charset))
285 if (nls && !try_module_get(nls->owner))
286 nls = NULL;
288 return nls;
296 void unload_nls(struct nls_table *nls)
298 if (nls)
299 module_put(nls->owner);