Lines Matching full:ent

392 	struct proc_dir_entry *ent = NULL;  in __proc_create()  local
421 ent = kmem_cache_zalloc(proc_dir_entry_cache, GFP_KERNEL); in __proc_create()
422 if (!ent) in __proc_create()
426 ent->name = ent->inline_name; in __proc_create()
428 ent->name = kmalloc(qstr.len + 1, GFP_KERNEL); in __proc_create()
429 if (!ent->name) { in __proc_create()
430 pde_free(ent); in __proc_create()
435 memcpy(ent->name, fn, qstr.len + 1); in __proc_create()
436 ent->namelen = qstr.len; in __proc_create()
437 ent->mode = mode; in __proc_create()
438 ent->nlink = nlink; in __proc_create()
439 ent->subdir = RB_ROOT; in __proc_create()
440 refcount_set(&ent->refcnt, 1); in __proc_create()
441 spin_lock_init(&ent->pde_unload_lock); in __proc_create()
442 INIT_LIST_HEAD(&ent->pde_openers); in __proc_create()
443 proc_set_user(ent, (*parent)->uid, (*parent)->gid); in __proc_create()
445 ent->proc_dops = &proc_misc_dentry_ops; in __proc_create()
448 return ent; in __proc_create()
454 struct proc_dir_entry *ent; in proc_symlink() local
456 ent = __proc_create(&parent, name, in proc_symlink()
459 if (ent) { in proc_symlink()
460 ent->data = kmalloc((ent->size=strlen(dest))+1, GFP_KERNEL); in proc_symlink()
461 if (ent->data) { in proc_symlink()
462 strcpy((char*)ent->data,dest); in proc_symlink()
463 ent->proc_iops = &proc_link_inode_operations; in proc_symlink()
464 ent = proc_register(parent, ent); in proc_symlink()
466 pde_free(ent); in proc_symlink()
467 ent = NULL; in proc_symlink()
470 return ent; in proc_symlink()
477 struct proc_dir_entry *ent; in proc_mkdir_data() local
482 ent = __proc_create(&parent, name, S_IFDIR | mode, 2); in proc_mkdir_data()
483 if (ent) { in proc_mkdir_data()
484 ent->data = data; in proc_mkdir_data()
485 ent->proc_dir_ops = &proc_dir_operations; in proc_mkdir_data()
486 ent->proc_iops = &proc_dir_inode_operations; in proc_mkdir_data()
487 ent = proc_register(parent, ent); in proc_mkdir_data()
489 return ent; in proc_mkdir_data()
510 struct proc_dir_entry *ent, *parent = NULL; in proc_create_mount_point() local
512 ent = __proc_create(&parent, name, mode, 2); in proc_create_mount_point()
513 if (ent) { in proc_create_mount_point()
514 ent->data = NULL; in proc_create_mount_point()
515 ent->proc_dir_ops = NULL; in proc_create_mount_point()
516 ent->proc_iops = NULL; in proc_create_mount_point()
517 ent = proc_register(parent, ent); in proc_create_mount_point()
519 return ent; in proc_create_mount_point()