Lines Matching defs:ks
5865 static int prepare_kstatmount(struct kstatmount *ks, struct mnt_id_req *kreq,
5872 memset(ks, 0, sizeof(*ks));
5873 ks->mask = kreq->param;
5874 ks->buf = buf;
5875 ks->bufsize = bufsize;
5877 if (ks->mask & STATMOUNT_STRING_REQ) {
5878 if (bufsize == sizeof(ks->sm))
5881 ks->seq.buf = kvmalloc(seq_size, GFP_KERNEL_ACCOUNT);
5882 if (!ks->seq.buf)
5885 ks->seq.size = seq_size;
5966 struct kstatmount *ks __free(kfree) = NULL;
5995 ks = kmalloc(sizeof(*ks), GFP_KERNEL_ACCOUNT);
5996 if (!ks)
6000 ret = prepare_kstatmount(ks, &kreq, buf, bufsize, seq_size);
6005 ret = do_statmount(ks, kreq.mnt_id, kreq.mnt_ns_id, mnt_file, ns);
6008 ret = copy_statmount_to_user(ks);
6009 kvfree(ks->seq.buf);
6010 path_put(&ks->root);