D_ALLOC(9) The Linux VFS D_ALLOC(9)NAME
d_alloc - allocate a dcache entry
SYNOPSIS
struct dentry * d_alloc(struct dentry * parent, const struct qstr * name);
ARGUMENTS
parent
parent of entry to allocate
name
qstr of the name
DESCRIPTION
Allocates a dentry. It returns NULL if there is insufficient memory available. On a success the dentry is returned. The name passed in is
copied and the copy passed in may be reused after this call.
COPYRIGHT Kernel Hackers Manual 3.10 June 2014 D_ALLOC(9)
Check Out this Related Man Page
DEBUGFS_CREATE_FILE(9) The debugfs filesystem DEBUGFS_CREATE_FILE(9)NAME
debugfs_create_file - create a file in the debugfs filesystem
SYNOPSIS
struct dentry * debugfs_create_file(const char * name, umode_t mode, struct dentry * parent, void * data,
const struct file_operations * fops);
ARGUMENTS
name
a pointer to a string containing the name of the file to create.
mode
the permission that the file should have.
parent
a pointer to the parent dentry for this file. This should be a directory dentry if set. If this paramater is NULL, then the file will
be created in the root of the debugfs filesystem.
data
a pointer to something that the caller will want to get to later on. The inode.i_private pointer will point to this value on the open
call.
fops
a pointer to a struct file_operations that should be used for this file.
DESCRIPTION
This is the basic "create a file" function for debugfs. It allows for a wide range of flexibility in creating a file, or a directory (if
you want to create a directory, the debugfs_create_dir function is recommended to be used instead.)
This function will return a pointer to a dentry if it succeeds. This pointer must be passed to the debugfs_remove function when the file is
to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here.) If an error occurs, NULL will be
returned.
If debugfs is not enabled in the kernel, the value -ENODEV will be returned.
COPYRIGHT Kernel Hackers Manual 3.10 June 2014 DEBUGFS_CREATE_FILE(9)
This is on HP UNIX version 11. I have a shared memory segment that is marked for deallocation .... see below
m 521 0x00000000 D-rw-rw---- oracle dba
The D says it marked for deallocation. I tried to do the ipcrm -m 521. The message said it cannot find the segment. I assume... (1 Reply)
Can anyone tell me why this section of code causes a segmentation fault when 'deallocate' is called?. Although it works when n>=number.
This code segment is intended to be used in a program in which the tensor is very large, (5x512x512) or greater.
i tryed to compile this using gcc version... (2 Replies)
If i "new" a object of class type A and A uses some data structure like array, set, map etc.
When i delete this object, need I delete/clear the array/set/map in the destrucator of A, or system will deallocate the memory automatically??
Thanks in advance! Em, do bear me if the question is... (3 Replies)
Hi all,
It will be very useful If you spare some time with me for this worrying error.
I am calling a conversion program which is written in C++ for converting a file format to different format. It was working fine for this past 2 yrs. But now it is not working since the file size has been... (1 Reply)
I would like to start my AIX UID allocation at a number far above the standard something like say 1000
however for the life of me i can't seem to find a place where i am able to set or see where aix looks for the user id's by default for allocation
common sense would say that it looks in... (1 Reply)
Hi,
I'm looking for a quite "interesting" bug at the moment - any idea could help! (o;
Language is fortran 90, compiler gfortran (sry, dont find which version it is). As I suppose you dont want to read like 10k lines of code here, I won't post the entire thing ^^
The problem is that I get... (3 Replies)
I'm having a hard time figuring out how to manage deallocation of memory in multithreaded environments. Specifically what I'm having a hard time with is using a lock to protect a structure, but when it's time to free the structure, you have to unlock the lock to destroy the lock itself. Which will... (5 Replies)
Hi guys!
Could you tell me what's this figure about? (See the attached figure below.)
This is a representation of block allocation filesystem and extent allocation filesystem in Solaris.
Does this mean that in a block-based allocation, data are placed in individual blocks while in... (0 Replies)
Hello,
I am trying to install Dmalloc 5.5.2 on AIX 5.3
While installing it both :sh ./configure and make run without errors. Then the command: make install finishes like this:
./mkinstalldirs /usr/local/include
./mkinstalldirs: not found
make: The error code from the last command is 1... (8 Replies)
Hi,
I installed dmalloc via RPM package
and I'm trying to compile a C program with dmalloc
I have added this line :function dmalloc { eval ‘command dmalloc -b $*‘; } to my .profile
I included ‘dmalloc.h’ in my C file
I tried to linke the dmalloc library via this command:
% gcc -o myprog... (4 Replies)