Lines Matching full:ent
396 struct proc_dir_entry *ent = NULL; in __proc_create() local
425 ent = kmem_cache_zalloc(proc_dir_entry_cache, GFP_KERNEL); in __proc_create()
426 if (!ent) in __proc_create()
430 ent->name = ent->inline_name; in __proc_create()
432 ent->name = kmalloc(qstr.len + 1, GFP_KERNEL); in __proc_create()
433 if (!ent->name) { in __proc_create()
434 pde_free(ent); in __proc_create()
439 memcpy(ent->name, fn, qstr.len + 1); in __proc_create()
440 ent->namelen = qstr.len; in __proc_create()
441 ent->mode = mode; in __proc_create()
442 ent->nlink = nlink; in __proc_create()
443 ent->subdir = RB_ROOT; in __proc_create()
444 refcount_set(&ent->refcnt, 1); in __proc_create()
445 spin_lock_init(&ent->pde_unload_lock); in __proc_create()
446 INIT_LIST_HEAD(&ent->pde_openers); in __proc_create()
447 proc_set_user(ent, (*parent)->uid, (*parent)->gid); in __proc_create()
449 ent->proc_dops = &proc_misc_dentry_ops; in __proc_create()
452 pde_force_lookup(ent); in __proc_create()
455 return ent; in __proc_create()
461 struct proc_dir_entry *ent; in proc_symlink() local
463 ent = __proc_create(&parent, name, in proc_symlink()
466 if (ent) { in proc_symlink()
467 ent->size = strlen(dest); in proc_symlink()
468 ent->data = kmemdup(dest, ent->size + 1, GFP_KERNEL); in proc_symlink()
469 if (ent->data) { in proc_symlink()
470 ent->proc_iops = &proc_link_inode_operations; in proc_symlink()
471 ent = proc_register(parent, ent); in proc_symlink()
473 pde_free(ent); in proc_symlink()
474 ent = NULL; in proc_symlink()
477 return ent; in proc_symlink()
484 struct proc_dir_entry *ent; in _proc_mkdir() local
489 ent = __proc_create(&parent, name, S_IFDIR | mode, 2); in _proc_mkdir()
490 if (ent) { in _proc_mkdir()
491 ent->data = data; in _proc_mkdir()
492 ent->proc_dir_ops = &proc_dir_operations; in _proc_mkdir()
493 ent->proc_iops = &proc_dir_inode_operations; in _proc_mkdir()
495 pde_force_lookup(ent); in _proc_mkdir()
497 ent = proc_register(parent, ent); in _proc_mkdir()
499 return ent; in _proc_mkdir()
527 struct proc_dir_entry *ent, *parent = NULL; in proc_create_mount_point() local
529 ent = __proc_create(&parent, name, mode, 2); in proc_create_mount_point()
530 if (ent) { in proc_create_mount_point()
531 ent->data = NULL; in proc_create_mount_point()
532 ent->proc_dir_ops = NULL; in proc_create_mount_point()
533 ent->proc_iops = NULL; in proc_create_mount_point()
534 ent = proc_register(parent, ent); in proc_create_mount_point()
536 return ent; in proc_create_mount_point()