Home
last modified time | relevance | path

Searched refs:kbuf (Results 1 – 7 of 7) sorted by relevance

/fs/afs/
Dproc.c252 char *kbuf, *name, *args; in afs_proc_cells_write() local
259 kbuf = kmalloc(size + 1, GFP_KERNEL); in afs_proc_cells_write()
260 if (!kbuf) in afs_proc_cells_write()
264 if (copy_from_user(kbuf, buf, size) != 0) in afs_proc_cells_write()
266 kbuf[size] = 0; in afs_proc_cells_write()
269 name = memchr(kbuf, '\n', size); in afs_proc_cells_write()
274 name = strchr(kbuf, ' '); in afs_proc_cells_write()
293 _debug("cmd=%s name=%s args=%s", kbuf, name, args); in afs_proc_cells_write()
295 if (strcmp(kbuf, "add") == 0) { in afs_proc_cells_write()
313 kfree(kbuf); in afs_proc_cells_write()
[all …]
/fs/dlm/
Duser.c514 struct dlm_write_request *kbuf; in device_write() local
525 kbuf = kzalloc(count + 1, GFP_KERNEL); in device_write()
526 if (!kbuf) in device_write()
529 if (copy_from_user(kbuf, buf, count)) { in device_write()
534 if (check_version(kbuf)) { in device_write()
540 if (!kbuf->is64bit) { in device_write()
542 k32buf = (struct dlm_write_request32 *)kbuf; in device_write()
543 kbuf = kmalloc(count + 1 + (sizeof(struct dlm_write_request) - in device_write()
545 if (!kbuf) { in device_write()
552 compat_input(kbuf, k32buf, count + 1); in device_write()
[all …]
/fs/
Dcompat.c235 static int put_compat_statfs(struct compat_statfs __user *ubuf, struct kstatfs *kbuf) in put_compat_statfs() argument
239 if ((kbuf->f_blocks | kbuf->f_bfree | kbuf->f_bavail | in put_compat_statfs()
240 kbuf->f_bsize | kbuf->f_frsize) & 0xffffffff00000000ULL) in put_compat_statfs()
244 if (kbuf->f_files != 0xffffffffffffffffULL in put_compat_statfs()
245 && (kbuf->f_files & 0xffffffff00000000ULL)) in put_compat_statfs()
247 if (kbuf->f_ffree != 0xffffffffffffffffULL in put_compat_statfs()
248 && (kbuf->f_ffree & 0xffffffff00000000ULL)) in put_compat_statfs()
252 __put_user(kbuf->f_type, &ubuf->f_type) || in put_compat_statfs()
253 __put_user(kbuf->f_bsize, &ubuf->f_bsize) || in put_compat_statfs()
254 __put_user(kbuf->f_blocks, &ubuf->f_blocks) || in put_compat_statfs()
[all …]
Ddcookies.c152 char * kbuf; in SYSCALL_DEFINE() local
174 kbuf = kmalloc(PAGE_SIZE, GFP_KERNEL); in SYSCALL_DEFINE()
175 if (!kbuf) in SYSCALL_DEFINE()
179 path = d_path(&dcs->path, kbuf, PAGE_SIZE); in SYSCALL_DEFINE()
188 pathlen = kbuf + PAGE_SIZE - path; in SYSCALL_DEFINE()
196 kfree(kbuf); in SYSCALL_DEFINE()
/fs/xfs/linux-2.6/
Dxfs_ioctl.c425 char *kbuf; in xfs_attrlist_by_handle() local
444 kbuf = kmalloc(al_hreq.buflen, GFP_KERNEL); in xfs_attrlist_by_handle()
445 if (!kbuf) in xfs_attrlist_by_handle()
449 error = -xfs_attr_list(XFS_I(dentry->d_inode), kbuf, al_hreq.buflen, in xfs_attrlist_by_handle()
454 if (copy_to_user(al_hreq.buffer, kbuf, al_hreq.buflen)) in xfs_attrlist_by_handle()
458 kfree(kbuf); in xfs_attrlist_by_handle()
472 char *kbuf; in xfs_attrmulti_attr_get() local
477 kbuf = kmalloc(*len, GFP_KERNEL); in xfs_attrmulti_attr_get()
478 if (!kbuf) in xfs_attrmulti_attr_get()
481 error = xfs_attr_get(XFS_I(inode), name, kbuf, (int *)len, flags); in xfs_attrmulti_attr_get()
[all …]
Dxfs_ioctl32.c362 char *kbuf; in xfs_compat_attrlist_by_handle() local
383 kbuf = kmalloc(al_hreq.buflen, GFP_KERNEL); in xfs_compat_attrlist_by_handle()
384 if (!kbuf) in xfs_compat_attrlist_by_handle()
388 error = -xfs_attr_list(XFS_I(dentry->d_inode), kbuf, al_hreq.buflen, in xfs_compat_attrlist_by_handle()
393 if (copy_to_user(compat_ptr(al_hreq.buffer), kbuf, al_hreq.buflen)) in xfs_compat_attrlist_by_handle()
397 kfree(kbuf); in xfs_compat_attrlist_by_handle()
/fs/ocfs2/
Dstack_user.c266 char kbuf[OCFS2_CONTROL_PROTO_LEN]; in ocfs2_control_validate_protocol() local
268 ret = ocfs2_control_cfu(kbuf, OCFS2_CONTROL_PROTO_LEN, in ocfs2_control_validate_protocol()
273 if (strncmp(kbuf, OCFS2_CONTROL_PROTO, OCFS2_CONTROL_PROTO_LEN)) in ocfs2_control_validate_protocol()