Re: Freeing a dynamic struct cdev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 06 Aug 2005 09:26:15 -0400 James C. Georgas wrote:

> If I allocate a struct cdev using cdev_alloc(), what function do I call
> to free it when I'm done with it?

Should be cdev_put(), which calls kobject_put(), which implements
ref counting (using krefs), so that when the last reference is
going away, the object will be removed.

---
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux