operations

# mcrash

## operations

### 書式

usage: `operations` -a|-b|-d|-f|-i|-s|-q|-v [address]

### 説明

Linuxではさまざまなデバイスやファイルシステムに対応するため、 xxx_operationsという名前のジャンプテーブルをよく用いています。 この`operations`コマンドでは、 ファイルI/O関係の代表的なジャンプテーブルのコレクションです。

### オプション

-a
  address_spaceオペレーション
-b
  block_deviceオペレーション
-d
  dentryオペレーション
-f
  fileオペレーション
-i
  inodeオペレーション
-s
  super_blockオペレーション
-q
  dquotオペレーション
-v
  vmオペレーション

### 実行例

    > operations -a ext2_aops
    ADDRESS SPACE OPERATIONS:   ADDRESS  SYMBOL
                   writepage:  c014fa90  ext2_writepage
                    readpage:  c014fab0  ext2_readpage
                   sync_page:  c0133020  block_sync_page
               prepare_write:  c014fad0  ext2_prepare_write
                commit_write:  c01320d0  generic_commit_write
                        bmap:  c014fb00  ext2_bmap
                   flushpage:         0  -
                  releaspage:         0  -
                   direct_IO:  c014fb20  ext2_direct_IO

    > operations -b ide_fops
     BLOCK DEVICE OPERATIONS:   ADDRESS  SYMBOL
                        open:  c01a0d20  ide_open
                     release:  c01a0e20  ide_release
                       ioctl:  c01a1fb0  ide_ioctl
          check_media_change:  c01a2d50  ide_check_media_change
                  revalidate:  c01a0b30  ide_revalidate_disk

    > operations -d vfat_dentry_ops
           DENTRY OPERATIONS:   ADDRESS  SYMBOL
                  revalidate:         0  -
                        hash:  c0159540  vfat_hashi
                     compare:  c01595c0  vfat_cmpi
                      delete:         0  -
                     release:         0  -
                        iput:         0  -

    > operations -f ext2_file_operations
             FILE OPERATIONS:   ADDRESS  SYMBOL
                       owner:         0  -
                      llseek:  c012f050  generic_file_llseek
                        read:  c0123c70  generic_file_read
                       write:  c0125370  generic_file_write
                     readdir:         0  -
                        poll:         0  -
                       ioctl:  c0150910  ext2_ioctl
                        mmap:  c01246d0  generic_file_mmap
                        open:  c012eff0  generic_file_open
                       flush:         0  -
                     release:  c014e7b0  ext2_release_file
                       fsync:  c014e7d0  ext2_sync_file
                      fasync:         0  -
                        lock:         0  -
                       readv:         0  -
                      writev:         0  -
                    sendpage:         0  -
           get_unmapped_area:         0  -

    > operations -i ext2_dir_inode_operations
            INODE OPERATIONS:   ADDRESS  SYMBOL
                      create:  c0150be0  ext2_create
                      lookup:  c0150b70  ext2_lookup
                        link:  c0150e60  ext2_link
                      unlink:  c0151010  ext2_unlink
                     symlink:  c0150d10  ext2_symlink
                       mkdir:  c0150f00  ext2_mkdir
                       rmdir:  c0151070  ext2_rmdir
                       mknod:  c0150c80  ext2_mknod
                      rename:  c01510f0  ext2_rename
                    readlink:         0  -
                 follow_link:         0  -
                    truncate:         0  -
                  permission:         0  -
                  revalidate:         0  -
                     setattr:         0  -
                     getattr:         0  -

    > operations -s ext2_sops
            SUPER OPERATIONS:   ADDRESS  SYMBOL
                  read_inode:  c0150160  ext2_read_inode
                 read_inode2:         0  -
                 dirty_inode:         0  -
                 write_inode:  c01508e0  ext2_write_inode
                   put_inode:  c014f0f0  ext2_put_inode
                delete_inode:  c014f100  ext2_delete_inode
                   put_super:  c0151510  ext2_put_super
                 write_super:  c0152520  ext2_write_super
          write_super_lockfs:         0  -
                    unlockfs:         0  -
                      statfs:  c0152690  ext2_statfs
                  remount_fs:  c0152570  ext2_remount
                 clear_inode:         0  -
                umount_begin:         0  -
                fh_to_dentry:         0  -
                dentry_to_fh:         0  -

    > operations -v generic_file_vm_ops
        VM OPERATIONS STRUCT:   ADDRESS  SYMBOL
                        open:         0  -
                       close:         0  -
                      nopage:  c0124260  filemap_nopage

mcrash, Copyright (C) 2002,2003 ASANO Masahiro