Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

d_alloc(9) [suse man page]

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 2.6. July 2010 D_ALLOC(9)

Check Out this Related Man Page

DEBUGFS_CREATE_U32(9)					      The debugfs filesystem					     DEBUGFS_CREATE_U32(9)

NAME
debugfs_create_u32 - create a debugfs file that is used to read and write an unsigned 32-bit value SYNOPSIS
struct dentry * debugfs_create_u32(const char * name, mode_t mode, struct dentry * parent, u32 * value); 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 parameter is NULL, then the file will be created in the root of the debugfs filesystem. value a pointer to the variable that the file should read to and write from. DESCRIPTION
This function creates a file in debugfs with the given name that contains the value of the variable value. If the mode variable is so set, it can be read from, and written to. 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. It is not wise to check for this value, but rather, check for NULL or !NULL instead as to eliminate the need for #ifdef in the calling code. COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 DEBUGFS_CREATE_U32(9)
Man Page

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

shared memory deallocation

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)
Discussion started by: joecbc
1 Replies

2. Programming

problem deallocating memory for 3d aray

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)
Discussion started by: bongobonga
2 Replies

3. Programming

Memory Deallocation Enquery

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)
Discussion started by: zzz_zzz
3 Replies

4. Shell Programming and Scripting

error during run: St9bad_alloc - Getting this error while using some conversion progr

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)
Discussion started by: sathu_pec
1 Replies

5. AIX

AIX UID allocation

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)
Discussion started by: dgaixsysadm
1 Replies

6. Programming

fortran: segmentation fault when deallocating

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)
Discussion started by: Giogio
3 Replies

7. Programming

Deallocating memory in multi-threaded environment.

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)
Discussion started by: gngrwzrd
5 Replies

8. Solaris

Block-based allocation and Extent-based allocation in Solaris

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)
Discussion started by: arah
0 Replies

9. AIX

Dmalloc install ussues on AIX

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)
Discussion started by: SteAlma
8 Replies

10. AIX

How to use dmalloc?

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)
Discussion started by: SteAlma
4 Replies