Changeset 409 for trunk/kernel/fs/vfs.c
- Timestamp:
- Dec 20, 2017, 4:51:09 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/fs/vfs.c
r408 r409 335 335 //////////////////////////////////////////// 336 336 void vfs_inode_set_size( xptr_t inode_xp, 337 337 uint32_t size ) 338 338 { 339 339 // get inode cluster and local pointer … … 370 370 371 371 ///////////////////////////////////////// 372 xptr_t vfs_inode_owner( xptr_t inode_xp ) 373 { 374 // get inode cluster and local pointer 375 cxy_t cxy = GET_CXY( inode_xp ); 376 vfs_inode_t * ptr = (vfs_inode_t *)GET_PTR( inode_xp ); 377 378 // get the main lock 379 return remote_spinlock_owner( XPTR( cxy , &ptr->main_lock ) ); 380 } 381 382 ///////////////////////////////////////// 383 void vfs_inode_display( xptr_t inode_xp ) 372 void vfs_inode_get_name( xptr_t inode_xp, 373 char * name ) 384 374 { 385 375 cxy_t inode_cxy; … … 389 379 vfs_dentry_t * dentry_ptr; 390 380 391 char name[CONFIG_VFS_MAX_NAME_LENGTH];392 393 381 // get inode cluster and local pointer 394 382 inode_cxy = GET_CXY( inode_xp ); … … 411 399 XPTR( dentry_cxy , &dentry_ptr->name ) ); 412 400 } 413 414 // display inode header 415 printk("\n***** inode <%s> [%x in cluster %x]\n", 416 name , GET_PTR(inode_xp) , GET_CXY(inode_xp) ); 417 418 // display children from xhtab 419 xhtab_display( XPTR( inode_cxy , &inode_ptr->children ) ); 420 421 } // end vfs_inode_display() 401 } // end vfs_inode_get_name() 422 402 423 403 ////////////////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.