本文整理汇总了C++中raw_notifier_chain_unregister函数的典型用法代码示例。如果您正苦于以下问题:C++ raw_notifier_chain_unregister函数的具体用法?C++ raw_notifier_chain_unregister怎么用?C++ raw_notifier_chain_unregister使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了raw_notifier_chain_unregister函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: dsa_switch_unregister_notifier
void dsa_switch_unregister_notifier(struct dsa_switch *ds)
{
int err;
err = raw_notifier_chain_unregister(&ds->dst->nh, &ds->nb);
if (err)
dev_err(ds->dev, "failed to unregister notifier (%d)\n", err);
}
示例2: process_notifier_unregister
int process_notifier_unregister(struct notifier_block *nb)
{
int result;
unsigned long flags;
write_lock_irqsave(¬ifier_lock, flags);
result = raw_notifier_chain_unregister(¬ifier_list, nb);
write_unlock_irqrestore(¬ifier_lock, flags);
return result;
}
示例3: cpu_pm_unregister_notifier
int cpu_pm_unregister_notifier(struct notifier_block *nb)
{
unsigned long flags;
int ret;
write_lock_irqsave(&cpu_pm_notifier_lock, flags);
ret = raw_notifier_chain_unregister(&cpu_pm_notifier_chain, nb);
write_unlock_irqrestore(&cpu_pm_notifier_lock, flags);
return ret;
}
示例4: modem_unregister_notifier
/*
* unregister a modem events change listener
*/
int modem_unregister_notifier(struct notifier_block *nb)
{
int ret = -ENODEV;
unsigned long flags;
if(vmdata){
raw_spin_lock_irqsave(&rslock, flags);
ret = raw_notifier_chain_unregister(&vmdata->ntf, nb);
raw_spin_unlock_irqrestore(&rslock, flags);
}
return ret;
}
示例5: xen_resume_notifier_unregister
void xen_resume_notifier_unregister(struct notifier_block *nb)
{
raw_notifier_chain_unregister(&xen_resume_notifier, nb);
}
示例6: __unregister_cpu_notifier
void __ref __unregister_cpu_notifier(struct notifier_block *nb)
{
raw_notifier_chain_unregister(&cpu_chain, nb);
}
示例7: ipcs_cp_notifier_unregister
void ipcs_cp_notifier_unregister(struct notifier_block *nb)
{
spin_lock_bh(&cp_state_notifier_lock);
raw_notifier_chain_unregister(&cp_state_notifier_list, nb);
spin_unlock_bh(&cp_state_notifier_lock);
}
示例8: visdn_unregister_notifier
int visdn_unregister_notifier(struct notifier_block *nb)
{
return raw_notifier_chain_unregister(&visdn_notify_chain, nb);
}
示例9: tegra_unregister_simon_notifier
void tegra_unregister_simon_notifier(struct notifier_block *nb)
{
mutex_lock(&simon_lock);
raw_notifier_chain_unregister(&simon_nh, nb);
mutex_unlock(&simon_lock);
}
示例10: clockevents_unregister_notifier
/**
* clockevents_unregister_notifier - unregister a clock events change listener
*/
void clockevents_unregister_notifier(struct notifier_block *nb)
{
spin_lock(&clockevents_lock);
raw_notifier_chain_unregister(&clockevents_chain, nb);
spin_unlock(&clockevents_lock);
}
示例11: unregister_busfreq_notifier
int unregister_busfreq_notifier(struct notifier_block *nb)
{
return raw_notifier_chain_unregister(&busfreq_notifier_chain, nb);
}
示例12: unregister_listen_notifier
static void unregister_listen_notifier(struct notifier_block *nb)
{
mutex_lock(¬ify_mutex);
raw_notifier_chain_unregister(&listen_notify_list, nb);
mutex_unlock(¬ify_mutex);
}
示例13: unregister_modem_state_notifier
int unregister_modem_state_notifier(struct notifier_block *nb)
{
return raw_notifier_chain_unregister(&modem_state_chain, nb);
}