KernelNewbies
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Kernel Hacking

  • Frontpage

  • Kernel Hacking

  • Kernel Documentation

  • Kernel Glossary

  • FAQ

  • Found a bug?

  • Kernel Changelog

  • Upstream Merge Guide

Projects

  • KernelJanitors

  • KernelMentors

  • KernelProjects

Community

  • Why a community?

  • Regional Kernelnewbies

  • Personal Pages

  • Upcoming Events

References

  • Mailing Lists

  • Related Sites

  • Programming Links

Wiki

  • Recent Changes

  • Site Editors

  • Side Bar

  • Tips for Editors

  • Hosted by WikiWall

Navigation

  • RecentChanges
  • FindPage
  • HelpContents
Revision 2 as of 2017-12-30 01:30:01
KernelNewbies:
  • KernelJanitors
  • Todo
  • ReturnCodes

Audit return codes (and handle failure correctly) for:

  • request_region()
  • request_irq()
  • kmalloc(), vmalloc(), etc
  • register_netdev() has to be checked as well
  • misc_register() (yes, it can fail, murphy's law applies here as well)
  • scsi_register()
  • create_proc_*()
  • pci_map_* might return 0 for a valid mapping.
    • Some code tests mapping for a non-zero value, which is incorrect.
  • get_free_pages() and get_free_page()
  • ioremap() -- Some are using this as a pointer, which is wrong.
  • put/get_user()
  • copy_*_user(), unlike put_user() it returns number of bytes failed to copy.
  • kernel_thread()
  • IDE drivers, as it can cause a real problem:
    • [D: http://marc.theaimsgroup.com/?l=kernel-janitor-discuss&m=110416923101031]

  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01