当前位置: 首页>>代码示例>>C++>>正文


C++ debug_object_free函数代码示例

本文整理汇总了C++中debug_object_free函数的典型用法代码示例。如果您正苦于以下问题:C++ debug_object_free函数的具体用法?C++ debug_object_free怎么用?C++ debug_object_free使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了debug_object_free函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: timer_fixup_free

/*
 * fixup_free is called when:
 * - an active object is freed
 */
static int timer_fixup_free(void *addr, enum debug_obj_state state)
{
	struct tti_timer_list *timer = addr;

	switch (state) {
	case ODEBUG_STATE_ACTIVE:
		tti_del_timer(timer);
		debug_object_free(timer, &timer_debug_descr);
		return 1;
	default:
		return 0;
	}
}
开发者ID:ibnHatab,项目名称:femto-henb,代码行数:17,代码来源:tti_timer.c

示例2: destroy_hrtimer_on_stack

void destroy_hrtimer_on_stack(struct hrtimer *timer)
{
	debug_object_free(timer, &hrtimer_debug_descr);
}
开发者ID:RolanDroid,项目名称:lge_MonsterKernel-lproj,代码行数:4,代码来源:hrtimer.c

示例3: debug_hrtimer_free

static inline void debug_hrtimer_free(struct hrtimer *timer)
{
	debug_object_free(timer, &hrtimer_debug_descr);
}
开发者ID:RolanDroid,项目名称:lge_MonsterKernel-lproj,代码行数:4,代码来源:hrtimer.c

示例4: destroy_rcu_head_on_stack

/**
 * destroy_rcu_head_on_stack() - destroy on-stack rcu_head for debugobjects
 * @head: pointer to rcu_head structure to be initialized
 *
 * This function informs debugobjects that an on-stack rcu_head structure
 * is about to go out of scope.  As with init_rcu_head_on_stack(), this
 * function is not required for rcu_head structures that are statically
 * defined or that are dynamically allocated on the heap.  Also as with
 * init_rcu_head_on_stack(), this function has no effect for
 * !CONFIG_DEBUG_OBJECTS_RCU_HEAD kernel builds.
 */
void destroy_rcu_head_on_stack(struct rcu_head *head)
{
	debug_object_free(head, &rcuhead_debug_descr);
}
开发者ID:Lyude,项目名称:linux,代码行数:15,代码来源:update.c

示例5: debug_rcu_head_free

static inline void debug_rcu_head_free(struct rcu_head *head)
{
	debug_object_free(head, &rcuhead_debug_descr);
}
开发者ID:ANFS,项目名称:ANFS-kernel,代码行数:4,代码来源:rcupdate.c

示例6: debug_timer_free

static inline void debug_timer_free(struct tti_timer_list *timer)
{
	debug_object_free(timer, &timer_debug_descr);
}
开发者ID:ibnHatab,项目名称:femto-henb,代码行数:4,代码来源:tti_timer.c


注:本文中的debug_object_free函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。