Changeset 50 for trunk/kernel/vfs/vfs.c
- Timestamp:
- Jun 26, 2017, 3:15:11 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/vfs/vfs.c
r23 r50 49 49 50 50 ////////////////////////////////////////////////////////////////////////////////////////// 51 // Global variables 52 ////////////////////////////////////////////////////////////////////////////////////////// 53 54 // array of supported FS contexts 55 vfs_ctx_t fs_context[FS_TYPES_NR]; 56 51 // Extern variables 52 ////////////////////////////////////////////////////////////////////////////////////////// 53 54 extern vfs_ctx_t fs_context[FS_TYPES_NR]; // allocate in kernel_init.c 55 57 56 ////////////////////////////////////////////////////////////////////////////////////////// 58 57 // Context related functions … … 297 296 kmem_req_t req; // request to kernel memory allocator 298 297 299 printk("\n @@@ dentry_create : 0 / name = %s\n", name );300 301 298 // check type and get pointer on context 302 299 if ( fs_type == FS_TYPE_FATFS ) ctx = &fs_context[FS_TYPE_FATFS]; … … 319 316 } 320 317 321 printk("\n @@@ dentry_create : 1 / name = %s\n", name );322 323 318 // allocate memory for dentry descriptor 324 319 req.type = KMEM_VFS_DENTRY; … … 340 335 strcpy( dentry->name , name ); 341 336 342 printk("\n @@@ dentry_create : 2 / name = %s\n", name );343 344 337 // register dentry in hash table rooted in parent inode 345 338 xhtab_insert( XPTR( local_cxy , &parent->children ), 346 339 name, 347 340 XPTR( local_cxy , &dentry->xlist ) ); 348 349 printk("\n @@@ dentry_create : 3 / name = %s\n", name );350 341 351 342 // return extended pointer on dentry
Note: See TracChangeset
for help on using the changeset viewer.