include/linux/mux/consumer.h

Source file repositories/reference/linux-study-clean/include/linux/mux/consumer.h

File Facts

System
Linux kernel
Corpus path
include/linux/mux/consumer.h
Extension
.h
Size
4796 bytes
Lines
171
Domain
Core OS
Bucket
Core Kernel Interface
Inferred role
Core OS: implementation source
Status
source implementation candidate

Why This File Exists

Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.

Dependency Surface

Detected Declarations

Annotated Snippet

static inline void mux_control_put(struct mux_control *mux) {}

static inline struct mux_control *devm_mux_control_get(struct device *dev, const char *mux_name)
{
	return ERR_PTR(-EOPNOTSUPP);
}
static inline struct mux_state *devm_mux_state_get(struct device *dev, const char *mux_name)
{
	return ERR_PTR(-EOPNOTSUPP);
}
static inline struct mux_state *devm_mux_state_get_optional(struct device *dev,
							    const char *mux_name)
{
	return NULL;
}
static inline struct mux_state *devm_mux_state_get_selected(struct device *dev,
							    const char *mux_name)
{
	return ERR_PTR(-EOPNOTSUPP);
}
static inline struct mux_state *devm_mux_state_get_optional_selected(struct device *dev,
								     const char *mux_name)
{
	return NULL;
}

#endif /* CONFIG_MULTIPLEXER */

#define devm_mux_state_get(dev, mux_name)		\
	devm_mux_state_get_from_np(dev, mux_name, NULL)

#endif /* _LINUX_MUX_CONSUMER_H */

Annotation

Implementation Notes