~arky/ubuntu/karmic/module-init-tools/fix-411534

Viewing all changes in revision 152.2.14.

  • Committer: Andreas Robinson
  • Date: 2009-05-15 12:53:30 UTC
  • mto: (152.1.5)
  • mto: This revision was merged to the branch mainline in revision 178.
  • Revision ID: git-v1:1f7b3782ba4292c821fbb2a7ce9ed19f568b8b04
elfops, depmod: add elf_file grab/release functions

This introduces constructor and destructor for struct elf_file,
following the grab/release naming pattern used elsewhere. Care is
taken to ensure the constructor returns a valid errno on failure.

The first user is grab_module() in depmod.c

Signed-off-by: Andreas Robinson <andr345@gmail.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: