Posted May 29, 2009 4:35 UTC (Fri) by vomlehn (subscriber, #45588)
Parent article: An updated guide to debugfs
It might be worth noting that the return value from debugfs_create_dir indicates success only if it not NULL and IS_ERR() returns zero. If IS_ERR() returns a non-zero value, PTR_ERR() should be used to get the return code.