Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\irq\irqdomain.c Create Date:2022-07-28 10:13:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:irq_domain_update_bus_token

Proto:void irq_domain_update_bus_token(struct irq_domain *domain, enum irq_domain_bus_token bus_token)

Type:void

Parameter:

TypeParameterName
struct irq_domain *domain
enum irq_domain_bus_tokenbus_token
274  If bus_token == bus_token Then Return
277  mutex_lock( & irq_domain_mutex)
279  bus_token = bus_token
281  name = kasprintf(GFP_KERNEL, "%s-%d", name, bus_token)
282  If Not name Then
283  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
284  Return
287  debugfs_remove_domain_dir(domain)
289  If host per irq_domain flags & IRQ_DOMAIN_NAME_ALLOCATED Then kfree - free previously allocated memory*@objp: pointer returned by kmalloc.* If @objp is NULL, no operation is performed.* Don't free memory not originally allocated by kmalloc()* or you will run into trouble.
291  Else host per irq_domain flags |= IRQ_DOMAIN_NAME_ALLOCATED
294  name = name
295  debugfs_add_domain_dir(domain)
297  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.