relay_close (9) Linux Manual Page
relay_close – close the channel Synopsis void relay_close(struct rchan *chan); Arguments chan the channel Description Closes all channel buffers and frees the channel. Copyright
The Linux Manuals (man pages) document is an important part of Linux documents. Linux Manuals are organized as several sections. Each section has a group of commands for a specific area in Linux usage, administration or development.
relay_close – close the channel Synopsis void relay_close(struct rchan *chan); Arguments chan the channel Description Closes all channel buffers and frees the channel. Copyright
relay_buf_full – boolean, is the channel buffer full? Synopsis int relay_buf_full(struct rchan_buf *buf); Arguments buf channel buffer Description Returns 1 if the buffer is full, 0 otherwise. Copyright
relay_buf_empty – boolean, is the channel buffer empty? Synopsis int relay_buf_empty(struct rchan_buf *buf); Arguments buf channel buffer Description Returns 1 if the buffer is empty, 0 otherwise. Copyright
relay_alloc_buf – allocate a channel buffer Synopsis void *relay_alloc_buf(struct rchan_buf *buf, size_t *size); Arguments buf the buffer struct size total size of the buffer Description Returns a pointer to the resulting buffer, NULL if unsuccessful. The passed in size will get page aligned, if it isn’t already. Copyright
regulator_unregister_supply_alias – Remove device alias Synopsis void regulator_unregister_supply_alias(struct device *dev, const char *id); Arguments dev device that will be given as the regulator “consumer” id Supply name or regulator ID Description Remove a lookup alias if one exists for id on dev. Authors Liam Girdwood <lrg [at] slimlogic.co.uk> Author. Mark Brown <broonie [at] opensource.wolfsonmicro.com> Wolfson…
regulator_unregister_notifier – unregister regulator event notifier Synopsis int regulator_unregister_notifier(struct regulator *regulator, struct notifier_block *nb); Arguments regulator regulator source nb notifier block Description Unregister regulator event notifier block. Authors Liam Girdwood <lrg [at] slimlogic.co.uk> Author. Mark Brown <broonie [at] opensource.wolfsonmicro.com> Wolfson Microelectronics, Author. Copyright
regulator_unregister – unregister regulator Synopsis void regulator_unregister(struct regulator_dev *rdev); Arguments rdev regulator to unregister Description Called by regulator drivers to unregister a regulator. Authors Liam Girdwood <lrg [at] slimlogic.co.uk> Author. Mark Brown <broonie [at] opensource.wolfsonmicro.com> Wolfson Microelectronics, Author. Copyright
regulator_sync_voltage – re-apply last regulator output voltage Synopsis int regulator_sync_voltage(struct regulator *regulator); Arguments regulator regulator source Description Re-apply the last configured voltage. This is intended to be used where some external control source the consumer is cooperating with has caused the configured voltage to change. Authors Liam Girdwood <lrg [at] slimlogic.co.uk> Author. Mark Brown <broonie…
regulator_suspend_prepare – prepare regulators for system wide suspend Synopsis int regulator_suspend_prepare(suspend_state_t state); Arguments state system suspend state Description Configure each regulator with it’s suspend operating parameters for state. This will usually be called by machine suspend code prior to supending. Authors Liam Girdwood <lrg [at] slimlogic.co.uk> Author. Mark Brown <broonie [at] opensource.wolfsonmicro.com> Wolfson Microelectronics, …
regulator_suspend_finish – resume regulators from system wide suspend Synopsis int regulator_suspend_finish(void); Arguments void no arguments Description Turn on regulators that might be turned off by regulator_suspend_prepare and that should be turned on according to the regulators properties. Authors Liam Girdwood <lrg [at] slimlogic.co.uk> Author. Mark Brown <broonie [at] opensource.wolfsonmicro.com> Wolfson Microelectronics, Author. Copyright
regulator_set_voltage_time_sel – get raise/fall time Synopsis int regulator_set_voltage_time_sel(struct regulator_dev *rdev, unsigned int old_selector, unsigned int new_selector); Arguments rdev regulator source device old_selector selector for starting voltage new_selector selector for target voltage Description Provided with the starting and target voltage selectors, this function returns time in microseconds required to rise or fall to this new voltage…
regulator_set_voltage_time – get raise/fall time Synopsis int regulator_set_voltage_time(struct regulator *regulator, int old_uV, int new_uV); Arguments regulator regulator source old_uV starting voltage in microvolts new_uV target voltage in microvolts Description Provided with the starting and ending voltage, this function attempts to calculate the time in microseconds required to rise or fall to this new voltage. Authors…
regulator_set_voltage – set regulator output voltage Synopsis int regulator_set_voltage(struct regulator *regulator, int min_uV, int max_uV); Arguments regulator regulator source min_uV Minimum required voltage in uV max_uV Maximum acceptable voltage in uV Description Sets a voltage regulator to the desired output voltage. This can be set during any regulator state. IOW, regulator can be disabled or…
regulator_set_mode – set regulator operating mode Synopsis int regulator_set_mode(struct regulator *regulator, unsigned int mode); Arguments regulator regulator source mode operating mode – one of the REGULATOR_MODE constants Description Set regulator operating mode to increase regulator efficiency or improve regulation performance. Note Regulator system constraints must be set for this regulator before calling this function otherwise…
regulator_set_load – set regulator load Synopsis int regulator_set_load(struct regulator *regulator, int uA_load); Arguments regulator regulator source uA_load load current Description Notifies the regulator core of a new device load. This is then used by DRMS (if enabled by constraints) to set the most efficient regulator operating mode for the new regulator loading. Consumer devices notify…
regulator_set_drvdata – set regulator driver data Synopsis void regulator_set_drvdata(struct regulator *regulator, void *data); Arguments regulator regulator data data Authors Liam Girdwood <lrg [at] slimlogic.co.uk> Author. Mark Brown <broonie [at] opensource.wolfsonmicro.com> Wolfson Microelectronics, Author. Copyright
regulator_set_current_limit – set regulator output current limit Synopsis int regulator_set_current_limit(struct regulator *regulator, int min_uA, int max_uA); Arguments regulator regulator source min_uA Minimum supported current in uA max_uA Maximum supported current in uA Description Sets current sink to the desired output current. This can be set during any regulator state. IOW, regulator can be disabled or…
regulator_register_supply_alias – Provide device alias for supply lookup Synopsis int regulator_register_supply_alias(struct device *dev, const char *id, struct device *alias_dev, const char *alias_id); Arguments dev device that will be given as the regulator “consumer” id Supply name or regulator ID alias_dev device that should be used to lookup the supply alias_id Supply name or regulator ID…
regulator_register_notifier – register regulator event notifier Synopsis int regulator_register_notifier(struct regulator *regulator, struct notifier_block *nb); Arguments regulator regulator source nb notifier block Description Register notifier block to receive regulator events. Authors Liam Girdwood <lrg [at] slimlogic.co.uk> Author. Mark Brown <broonie [at] opensource.wolfsonmicro.com> Wolfson Microelectronics, Author. Copyright
regulator_register – register regulator Synopsis struct regulator_dev *regulator_register(const struct regulator_desc *regulator_desc, const struct regulator_config *cfg); Arguments regulator_desc regulator to register cfg runtime configuration for regulator Description Called by regulator drivers to register a regulator. Returns a valid pointer to struct regulator_dev on success or an ERR_PTR on error. Authors Liam Girdwood <lrg [at] slimlogic.co.uk> Author….