/kernel/linux/linux-5.10/fs/isofs/ |
H A D | joliet.c | 11 #include <linux/nls.h> 18 uni16_to_x8(unsigned char *ascii, __be16 *uni, int len, struct nls_table *nls) in uni16_to_x8() argument 28 llen = nls->uni2char(be16_to_cpu(ch), op, NLS_MAX_CHARSET_SIZE); in uni16_to_x8() 44 struct nls_table *nls; in get_joliet_filename() local 47 nls = ISOFS_SB(inode->i_sb)->s_nls_iocharset; in get_joliet_filename() 49 if (!nls) { in get_joliet_filename() 55 de->name_len[0] >> 1, nls); in get_joliet_filename()
|
/kernel/linux/linux-6.6/fs/isofs/ |
H A D | joliet.c | 11 #include <linux/nls.h> 18 uni16_to_x8(unsigned char *ascii, __be16 *uni, int len, struct nls_table *nls) in uni16_to_x8() argument 28 llen = nls->uni2char(be16_to_cpu(ch), op, NLS_MAX_CHARSET_SIZE); in uni16_to_x8() 44 struct nls_table *nls; in get_joliet_filename() local 47 nls = ISOFS_SB(inode->i_sb)->s_nls_iocharset; in get_joliet_filename() 49 if (!nls) { in get_joliet_filename() 55 de->name_len[0] >> 1, nls); in get_joliet_filename()
|
/kernel/linux/linux-5.10/fs/hfsplus/ |
H A D | options.c | 16 #include <linux/nls.h> 39 { opt_nls, "nls=%s" }, 173 if (sbi->nls) { in hfsplus_parse_options() 174 pr_err("unable to change nls mapping\n"); in hfsplus_parse_options() 179 sbi->nls = load_nls(p); in hfsplus_parse_options() 180 if (!sbi->nls) { in hfsplus_parse_options() 181 pr_err("unable to load nls mapping \"%s\"\n", in hfsplus_parse_options() 209 if (!sbi->nls) { in hfsplus_parse_options() 211 sbi->nls = load_nls("utf8"); in hfsplus_parse_options() 212 if (!sbi->nls) in hfsplus_parse_options() [all...] |
H A D | super.c | 19 #include <linux/nls.h> 305 unload_nls(sbi->nls); in hfsplus_put_super() 382 struct nls_table *nls = NULL; in hfsplus_fill_super() local 405 nls = sbi->nls; in hfsplus_fill_super() 406 sbi->nls = load_nls("utf8"); in hfsplus_fill_super() 407 if (!sbi->nls) { in hfsplus_fill_super() 408 pr_err("unable to load nls for utf8\n"); in hfsplus_fill_super() 588 unload_nls(sbi->nls); in hfsplus_fill_super() 589 sbi->nls in hfsplus_fill_super() [all...] |
/kernel/linux/linux-6.6/fs/hfsplus/ |
H A D | options.c | 16 #include <linux/nls.h> 39 { opt_nls, "nls=%s" }, 173 if (sbi->nls) { in hfsplus_parse_options() 174 pr_err("unable to change nls mapping\n"); in hfsplus_parse_options() 179 sbi->nls = load_nls(p); in hfsplus_parse_options() 180 if (!sbi->nls) { in hfsplus_parse_options() 181 pr_err("unable to load nls mapping \"%s\"\n", in hfsplus_parse_options() 209 if (!sbi->nls) { in hfsplus_parse_options() 211 sbi->nls = load_nls("utf8"); in hfsplus_parse_options() 212 if (!sbi->nls) in hfsplus_parse_options() [all...] |
H A D | super.c | 19 #include <linux/nls.h> 305 unload_nls(sbi->nls); in hfsplus_put_super() 382 struct nls_table *nls = NULL; in hfsplus_fill_super() local 405 nls = sbi->nls; in hfsplus_fill_super() 406 sbi->nls = load_nls("utf8"); in hfsplus_fill_super() 407 if (!sbi->nls) { in hfsplus_fill_super() 408 pr_err("unable to load nls for utf8\n"); in hfsplus_fill_super() 588 unload_nls(sbi->nls); in hfsplus_fill_super() 589 sbi->nls in hfsplus_fill_super() [all...] |
/kernel/linux/linux-5.10/samples/connector/ |
H A D | cn_test.c | 22 static struct sock *nls; variable 105 //netlink_broadcast(nls, skb, 0, ctl->group, GFP_ATOMIC); 106 netlink_unicast(nls, skb, 0, 0); 167 if (nls && nls->sk_socket) in cn_test_init() 168 sock_release(nls->sk_socket); in cn_test_init() 179 if (nls && nls->sk_socket) in cn_test_fini() 180 sock_release(nls->sk_socket); in cn_test_fini()
|
/kernel/linux/linux-6.6/samples/connector/ |
H A D | cn_test.c | 22 static struct sock *nls; variable 105 //netlink_broadcast(nls, skb, 0, ctl->group, GFP_ATOMIC); 106 netlink_unicast(nls, skb, 0, 0); 167 if (nls && nls->sk_socket) in cn_test_init() 168 sock_release(nls->sk_socket); in cn_test_init() 179 if (nls && nls->sk_socket) in cn_test_fini() 180 sock_release(nls->sk_socket); in cn_test_fini()
|
/kernel/linux/linux-5.10/fs/nls/ |
H A D | nls_base.c | 2 * linux/fs/nls/nls_base.c 13 #include <linux/nls.h> 235 int __register_nls(struct nls_table *nls, struct module *owner) in __register_nls() argument 239 if (nls->next) in __register_nls() 242 nls->owner = owner; in __register_nls() 245 if (nls == *tmp) { in __register_nls() 251 nls->next = tables; in __register_nls() 252 tables = nls; in __register_nls() 258 int unregister_nls(struct nls_table * nls) in unregister_nls() argument 264 if (nls in unregister_nls() 277 struct nls_table *nls; find_nls() local 296 unload_nls(struct nls_table *nls) unload_nls() argument [all...] |
/kernel/linux/linux-6.6/fs/nls/ |
H A D | nls_base.c | 2 * linux/fs/nls/nls_base.c 13 #include <linux/nls.h> 235 int __register_nls(struct nls_table *nls, struct module *owner) in __register_nls() argument 239 if (nls->next) in __register_nls() 242 nls->owner = owner; in __register_nls() 245 if (nls == *tmp) { in __register_nls() 251 nls->next = tables; in __register_nls() 252 tables = nls; in __register_nls() 258 int unregister_nls(struct nls_table * nls) in unregister_nls() argument 264 if (nls in unregister_nls() 277 struct nls_table *nls; find_nls() local 296 unload_nls(struct nls_table *nls) unload_nls() argument [all...] |
/kernel/linux/linux-5.10/drivers/connector/ |
H A D | connector.c | 91 if (!portid && !netlink_has_listeners(dev->nls, group)) in cn_netlink_send_mult() 113 return netlink_broadcast(dev->nls, skb, portid, group, in cn_netlink_send_mult() 115 return netlink_unicast(dev->nls, skb, portid, in cn_netlink_send_mult() 254 dev->nls = netlink_kernel_create(&init_net, NETLINK_CONNECTOR, &cfg); in cn_init() 255 if (!dev->nls) in cn_init() 258 dev->cbdev = cn_queue_alloc_dev("cqueue", dev->nls); in cn_init() 260 netlink_kernel_release(dev->nls); in cn_init() 280 netlink_kernel_release(dev->nls); in cn_fini()
|
H A D | cn_queue.c | 112 struct cn_queue_dev *cn_queue_alloc_dev(const char *name, struct sock *nls) in cn_queue_alloc_dev() argument 125 dev->nls = nls; in cn_queue_alloc_dev()
|
/kernel/linux/linux-6.6/drivers/connector/ |
H A D | connector.c | 93 if (!portid && !netlink_has_listeners(dev->nls, group)) in cn_netlink_send_mult() 115 return netlink_broadcast_filtered(dev->nls, skb, portid, group, in cn_netlink_send_mult() 118 return netlink_unicast(dev->nls, skb, portid, in cn_netlink_send_mult() 286 dev->nls = netlink_kernel_create(&init_net, NETLINK_CONNECTOR, &cfg); in cn_init() 287 if (!dev->nls) in cn_init() 290 dev->cbdev = cn_queue_alloc_dev("cqueue", dev->nls); in cn_init() 292 netlink_kernel_release(dev->nls); in cn_init() 312 netlink_kernel_release(dev->nls); in cn_fini()
|
H A D | cn_queue.c | 112 struct cn_queue_dev *cn_queue_alloc_dev(const char *name, struct sock *nls) in cn_queue_alloc_dev() argument 125 dev->nls = nls; in cn_queue_alloc_dev()
|
/kernel/linux/linux-5.10/fs/befs/ |
H A D | linuxvfs.c | 16 #include <linux/nls.h> 187 if (BEFS_SB(sb)->nls) { in befs_lookup() 249 if (BEFS_SB(sb)->nls) { in befs_readdir() 503 * Uses uni2char() / char2uni() rather than the nls tables directly 509 struct nls_table *nls = BEFS_SB(sb)->nls; in befs_utf2nls() local 514 /* The utf8->nls conversion won't make the final nls string bigger in befs_utf2nls() 522 if (!nls) { in befs_utf2nls() 538 /* convert from Unicode to nls */ in befs_utf2nls() 586 struct nls_table *nls = BEFS_SB(sb)->nls; befs_nls2utf() local [all...] |
/kernel/linux/linux-6.6/fs/befs/ |
H A D | linuxvfs.c | 16 #include <linux/nls.h> 186 if (BEFS_SB(sb)->nls) { in befs_lookup() 248 if (BEFS_SB(sb)->nls) { in befs_readdir() 502 * Uses uni2char() / char2uni() rather than the nls tables directly 508 struct nls_table *nls = BEFS_SB(sb)->nls; in befs_utf2nls() local 513 /* The utf8->nls conversion won't make the final nls string bigger in befs_utf2nls() 521 if (!nls) { in befs_utf2nls() 537 /* convert from Unicode to nls */ in befs_utf2nls() 585 struct nls_table *nls = BEFS_SB(sb)->nls; befs_nls2utf() local [all...] |
/kernel/linux/linux-6.6/fs/ntfs3/ |
H A D | dir.c | 11 #include <linux/nls.h> 23 struct nls_table *nls = sbi->options->nls; in ntfs_utf16_to_nls() local 27 if (!nls) { in ntfs_utf16_to_nls() 50 charlen = nls->uni2char(ec, op, buf_len); in ntfs_utf16_to_nls() 69 nls->charset); in ntfs_utf16_to_nls() 85 * put_utf16 - Modified version of put_utf16 from fs/nls/nls_base.c 183 struct nls_table *nls = sbi->options->nls; in ntfs_nls_to_utf16() local 188 if (!nls) { in ntfs_nls_to_utf16() [all...] |
/kernel/linux/linux-5.10/fs/ntfs/ |
H A D | unistr.c | 248 struct nls_table *nls = vol->nls_map; in ntfs_nlstoucs() local 258 wc_len = nls->char2uni(ins + i, ins_len - i, in ntfs_nlstoucs() 286 "Unicode.", nls->charset); in ntfs_nlstoucs() 325 struct nls_table *nls = vol->nls_map; in ntfs_ucstonls() local 344 retry: wc = nls->uni2char(le16_to_cpu(ins[i]), ns + o, in ntfs_ucstonls() 375 "try to use the mount option nls=utf8.", nls->charset); in ntfs_ucstonls()
|
/kernel/linux/linux-6.6/fs/ntfs/ |
H A D | unistr.c | 248 struct nls_table *nls = vol->nls_map; in ntfs_nlstoucs() local 258 wc_len = nls->char2uni(ins + i, ins_len - i, in ntfs_nlstoucs() 286 "Unicode.", nls->charset); in ntfs_nlstoucs() 325 struct nls_table *nls = vol->nls_map; in ntfs_ucstonls() local 344 retry: wc = nls->uni2char(le16_to_cpu(ins[i]), ns + o, in ntfs_ucstonls() 375 "try to use the mount option nls=utf8.", nls->charset); in ntfs_ucstonls()
|
/kernel/linux/linux-5.10/fs/vboxsf/ |
H A D | super.c | 17 #include <linux/nls.h> 43 fsparam_string ("nls", opt_nls), 69 vbg_err("vboxsf: Cannot reconfigure nls option\n"); in vboxsf_parse_param() 143 /* Load nls if not utf8 */ in vboxsf_fill_super() 147 sbi->nls = load_nls_default(); in vboxsf_fill_super() 149 sbi->nls = load_nls(nls_name); in vboxsf_fill_super() 151 if (!sbi->nls) { in vboxsf_fill_super() 152 vbg_err("vboxsf: Count not load '%s' nls\n", nls_name); in vboxsf_fill_super() 225 if (sbi->nls) in vboxsf_fill_super() 226 unload_nls(sbi->nls); in vboxsf_fill_super() [all...] |
/kernel/linux/linux-6.6/fs/vboxsf/ |
H A D | super.c | 17 #include <linux/nls.h> 43 fsparam_string ("nls", opt_nls), 69 vbg_err("vboxsf: Cannot reconfigure nls option\n"); in vboxsf_parse_param() 143 /* Load nls if not utf8 */ in vboxsf_fill_super() 147 sbi->nls = load_nls_default(); in vboxsf_fill_super() 149 sbi->nls = load_nls(nls_name); in vboxsf_fill_super() 151 if (!sbi->nls) { in vboxsf_fill_super() 152 vbg_err("vboxsf: Count not load '%s' nls\n", nls_name); in vboxsf_fill_super() 225 if (sbi->nls) in vboxsf_fill_super() 226 unload_nls(sbi->nls); in vboxsf_fill_super() [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
H A D | netlink.c | 315 struct sock *nls; in rdma_nl_net_init() local 317 nls = netlink_kernel_create(net, NETLINK_RDMA, &cfg); in rdma_nl_net_init() 318 if (!nls) in rdma_nl_net_init() 321 nls->sk_sndtimeo = 10 * HZ; in rdma_nl_net_init() 322 rnet->nl_sock = nls; in rdma_nl_net_init()
|
/kernel/linux/linux-6.6/drivers/infiniband/core/ |
H A D | netlink.c | 315 struct sock *nls; in rdma_nl_net_init() local 317 nls = netlink_kernel_create(net, NETLINK_RDMA, &cfg); in rdma_nl_net_init() 318 if (!nls) in rdma_nl_net_init() 321 nls->sk_sndtimeo = 10 * HZ; in rdma_nl_net_init() 322 rnet->nl_sock = nls; in rdma_nl_net_init()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | nls.h | 53 #define register_nls(nls) __register_nls((nls), THIS_MODULE)
|
H A D | connector.h | 29 struct sock *nls; member 52 struct sock *nls; member
|