Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    How to understand in_dev_put()and in_dev_get()?

    I'm wondering how to understand the in_dev_get() and in_dev_put() functions in "linux/inetdevice.h". What do them mean? Should them be used together? Could anybody explain them for me? thanks a lot!!

  2. #2
    in_dev_get() return a pointer to a in_device struct relating to a net_device, and add an reference to this net_device. When our work done using this struct we should release this in_device struct by in_dev_put().

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts