Lines Matching refs:ks
5824 static int prepare_kstatmount(struct kstatmount *ks, struct mnt_id_req *kreq, in prepare_kstatmount() argument
5831 memset(ks, 0, sizeof(*ks)); in prepare_kstatmount()
5832 ks->mask = kreq->param; in prepare_kstatmount()
5833 ks->buf = buf; in prepare_kstatmount()
5834 ks->bufsize = bufsize; in prepare_kstatmount()
5836 if (ks->mask & STATMOUNT_STRING_REQ) { in prepare_kstatmount()
5837 if (bufsize == sizeof(ks->sm)) in prepare_kstatmount()
5840 ks->seq.buf = kvmalloc(seq_size, GFP_KERNEL_ACCOUNT); in prepare_kstatmount()
5841 if (!ks->seq.buf) in prepare_kstatmount()
5844 ks->seq.size = seq_size; in prepare_kstatmount()
5925 struct kstatmount *ks __free(kfree) = NULL; in SYSCALL_DEFINE4()
5954 ks = kmalloc(sizeof(*ks), GFP_KERNEL_ACCOUNT); in SYSCALL_DEFINE4()
5955 if (!ks) in SYSCALL_DEFINE4()
5959 ret = prepare_kstatmount(ks, &kreq, buf, bufsize, seq_size); in SYSCALL_DEFINE4()
5964 ret = do_statmount(ks, kreq.mnt_id, kreq.mnt_ns_id, mnt_file, ns); in SYSCALL_DEFINE4()
5967 ret = copy_statmount_to_user(ks); in SYSCALL_DEFINE4()
5968 kvfree(ks->seq.buf); in SYSCALL_DEFINE4()
5969 path_put(&ks->root); in SYSCALL_DEFINE4()