id
stringlengths
4
63
text
stringlengths
153
8.81M
mlx5hws_action_create_pop_vlan(9)
NAME mlx5hws_action_create_pop_vlan - Create direct rule pop vlan action. SYNOPSIS struct mlx5hws_action * mlx5hws_action_create_pop_vlan (struct mlx5hws_context *ctx , u32 flags ); ARGUMENTS ctx The context in which the new action will be created. flags Action creation flags (enum mlx5hws_actio...
mlx5hws_action_create_push_vlan(9)
NAME mlx5hws_action_create_push_vlan - Create direct rule push vlan action. SYNOPSIS struct mlx5hws_action * mlx5hws_action_create_push_vlan (struct mlx5hws_context *ctx , u32 flags ); ARGUMENTS ctx The context in which the new action will be created. flags Action creation flags (enum mlx5hws_ac...
mlx5hws_action_create_reformat(9)
NAME mlx5hws_action_create_reformat - Create direct rule reformat action. SYNOPSIS struct mlx5hws_action * mlx5hws_action_create_reformat (struct mlx5hws_context *ctx , enum mlx5hws_action_type reformat_type , u8 num_of_hdrs , struct mlx5hws_action_reformat_header *hdrs , u32 log_bulk_size , u32 flags ); ARGUMENTS ...
mlx5hws_action_create_remove_header(9)
NAME mlx5hws_action_create_remove_header - Create remove header action. SYNOPSIS struct mlx5hws_action * mlx5hws_action_create_remove_header (struct mlx5hws_context *ctx , struct mlx5hws_action_remove_header_attr *attr , u32 flags ); ARGUMENTS ctx The context in which the new action will be created. a...
mlx5hws_action_create_tag(9)
NAME mlx5hws_action_create_tag - Create direct rule TAG action. SYNOPSIS struct mlx5hws_action * mlx5hws_action_create_tag (struct mlx5hws_context *ctx , u32 flags ); ARGUMENTS ctx The context in which the new action will be created. flags Action creation flags (enum mlx5hws_action_flags). RETU...
mlx5hws_action_destroy(9)
NAME mlx5hws_action_destroy - Destroy direct rule action. SYNOPSIS int mlx5hws_action_destroy (struct mlx5hws_action *action ); ARGUMENTS action The action to destroy. RETURN zero on success non zero otherwise. SEE ALSO Kernel file ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h mlx5hws_is_...
mlx5hws_action_get_dev(9)
NAME mlx5hws_action_get_dev - Get mlx5 core device. SYNOPSIS struct mlx5_core_dev * mlx5hws_action_get_dev (struct mlx5hws_action *action ); ARGUMENTS action The action to get the device from. RETURN mlx5 core device. SEE ALSO Kernel file ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h mlx5...
mlx5hws_action_get_type(9)
NAME mlx5hws_action_get_type - Get action type. SYNOPSIS enum mlx5hws_action_type mlx5hws_action_get_type (struct mlx5hws_action *action ); ARGUMENTS action The action to get the type of. RETURN action type. SEE ALSO Kernel file ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h mlx5hws_is_sup...
mlx5hws_action_template_create(9)
NAME mlx5hws_action_template_create - Create a new action template based on an action_type array. SYNOPSIS struct mlx5hws_action_template * mlx5hws_action_template_create (enum mlx5hws_action_type action_type[] ); ARGUMENTS action_type An array of actions based on the order of actions which will be provided with rule...
mlx5hws_action_template_destroy(9)
NAME mlx5hws_action_template_destroy - Destroy action template. SYNOPSIS int mlx5hws_action_template_destroy (struct mlx5hws_action_template *at ); ARGUMENTS at Action template to destroy. RETURN zero on success non zero otherwise. SEE ALSO Kernel file ./drivers/net/ethernet/mellanox/mlx5/core/steering/h...
mlx5hws_bwc_matcher_create(9)
NAME mlx5hws_bwc_matcher_create - Create a new BWC direct rule matcher. SYNOPSIS struct mlx5hws_bwc_matcher * mlx5hws_bwc_matcher_create (struct mlx5hws_table *table , u32 priority , u8 match_criteria_enable , struct mlx5hws_match_parameters *mask ); ARGUMENTS table The table in which the new matcher will be op...
mlx5hws_bwc_matcher_destroy(9)
NAME mlx5hws_bwc_matcher_destroy - Destroy BWC direct rule matcher. SYNOPSIS int mlx5hws_bwc_matcher_destroy (struct mlx5hws_bwc_matcher *bwc_matcher ); ARGUMENTS bwc_matcher Matcher to destroy RETURN zero on success, non zero otherwise SEE ALSO Kernel file ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/m...
mlx5hws_bwc_rule_action_update(9)
NAME mlx5hws_bwc_rule_action_update - Update actions on an existing BWC rule. SYNOPSIS int mlx5hws_bwc_rule_action_update (struct mlx5hws_bwc_rule *bwc_rule , struct mlx5hws_rule_action rule_actions[] ); ARGUMENTS bwc_rule Rule to update rule_actions Rule action to update with RETURN ze...
mlx5hws_bwc_rule_create(9)
NAME mlx5hws_bwc_rule_create - Create a new BWC rule. SYNOPSIS struct mlx5hws_bwc_rule * mlx5hws_bwc_rule_create (struct mlx5hws_bwc_matcher *bwc_matcher , struct mlx5hws_match_parameters *params , u32 flow_source , struct mlx5hws_rule_action rule_actions[] ); ARGUMENTS bwc_matcher The BWC matcher in which the new ru...
mlx5hws_bwc_rule_destroy(9)
NAME mlx5hws_bwc_rule_destroy - Destroy BWC direct rule. SYNOPSIS int mlx5hws_bwc_rule_destroy (struct mlx5hws_bwc_rule *bwc_rule ); ARGUMENTS bwc_rule Rule to destroy. RETURN zero on success, non zero otherwise. SEE ALSO Kernel file ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h mlx5hws_is_...
mlx5hws_context_close(9)
NAME mlx5hws_context_close - Close a context used for direct hardware steering. SYNOPSIS int mlx5hws_context_close (struct mlx5hws_context *ctx ); ARGUMENTS ctx mlx5hws context to close. RETURN zero on success non zero otherwise. SEE ALSO Kernel file ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/...
mlx5hws_context_open(9)
NAME mlx5hws_context_open - Open a context used for direct rule insertion using hardware steering. SYNOPSIS struct mlx5hws_context * mlx5hws_context_open (struct mlx5_core_dev *mdev , struct mlx5hws_context_attr *attr ); ARGUMENTS mdev The device to be used for HWS. attr Attributes used for cont...
mlx5hws_context_set_peer(9)
NAME mlx5hws_context_set_peer - Set a peer context. Each context can have multiple contexts as peers. SYNOPSIS void mlx5hws_context_set_peer (struct mlx5hws_context *ctx , struct mlx5hws_context *peer_ctx , u16 peer_vhca_id ); ARGUMENTS ctx The context in which the peer_ctx will be peered to it. peer_...
mlx5hws_debug_dump(9)
NAME mlx5hws_debug_dump - Dump HWS info SYNOPSIS int mlx5hws_debug_dump (struct mlx5hws_context *ctx ); ARGUMENTS ctx The context which to dump the info from. RETURN zero on success non zero otherwise. SEE ALSO Kernel file ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h mlx5hws_is_suppor...
mlx5hws_is_supported(9)
NAME mlx5hws_is_supported - Check whether HWS is supported SYNOPSIS bool mlx5hws_is_supported (struct mlx5_core_dev *mdev ); ARGUMENTS mdev The device to check. RETURN true if supported, false otherwise. SEE ALSO Kernel file ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h mlx5hws_context_o...
mlx5hws_match_template_create(9)
NAME mlx5hws_match_template_create - Create a new match template based on items mask. The match template will be used for matcher creation. SYNOPSIS struct mlx5hws_match_template * mlx5hws_match_template_create (struct mlx5hws_context *ctx , u32 *match_param , u32 match_param_sz , u8 match_criteria_enable ); ARGUMENT...
mlx5hws_match_template_destroy(9)
NAME mlx5hws_match_template_destroy - Destroy a match template. SYNOPSIS int mlx5hws_match_template_destroy (struct mlx5hws_match_template *mt ); ARGUMENTS mt Match template to destroy. RETURN Zero on success, non-zero otherwise. SEE ALSO Kernel file ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws...
mlx5hws_matcher_attach_at(9)
NAME mlx5hws_matcher_attach_at - Attach a new action template to a direct rule matcher. SYNOPSIS int mlx5hws_matcher_attach_at (struct mlx5hws_matcher *matcher , struct mlx5hws_action_template *at ); ARGUMENTS matcher Matcher to attach the action template to. at Action template to be attached to ...
mlx5hws_matcher_create(9)
NAME mlx5hws_matcher_create - Create a new direct rule matcher. SYNOPSIS struct mlx5hws_matcher * mlx5hws_matcher_create (struct mlx5hws_table *table , struct mlx5hws_match_template *mt[] , u8 num_of_mt , struct mlx5hws_action_template *at[] , u8 num_of_at , struct mlx5hws_matcher_attr *attr ); ARGUMENTS table ...
mlx5hws_matcher_destroy(9)
NAME mlx5hws_matcher_destroy - Destroy a direct rule matcher. SYNOPSIS int mlx5hws_matcher_destroy (struct mlx5hws_matcher *matcher ); ARGUMENTS matcher Matcher to destroy. RETURN Zero on success, non-zero otherwise. SEE ALSO Kernel file ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h mlx5hw...
mlx5hws_matcher_resize_rule_move(9)
NAME mlx5hws_matcher_resize_rule_move - Enqueue moving rule operation. SYNOPSIS int mlx5hws_matcher_resize_rule_move (struct mlx5hws_matcher *src_matcher , struct mlx5hws_rule *rule , struct mlx5hws_rule_attr *attr ); ARGUMENTS src_matcher Matcher that the rule belongs to. rule The rule to move. ...
mlx5hws_matcher_resize_set_target(9)
NAME mlx5hws_matcher_resize_set_target - Link two matchers and enable moving rules. SYNOPSIS int mlx5hws_matcher_resize_set_target (struct mlx5hws_matcher *src_matcher , struct mlx5hws_matcher *dst_matcher ); ARGUMENTS src_matcher Source matcher for moving rules from. dst_matcher Destination matcher for movin...
mlx5hws_rule_action_update(9)
NAME mlx5hws_rule_action_update - Enqueue update actions on an existing rule. SYNOPSIS int mlx5hws_rule_action_update (struct mlx5hws_rule *rule , u8 at_idx , struct mlx5hws_rule_action rule_actions[] , struct mlx5hws_rule_attr *attr ); ARGUMENTS rule A valid rule handle to update. at_idx Action t...
mlx5hws_rule_create(9)
NAME mlx5hws_rule_create - Enqueue create rule operation. SYNOPSIS int mlx5hws_rule_create (struct mlx5hws_matcher *matcher , u8 mt_idx , u32 *match_param , u8 at_idx , struct mlx5hws_rule_action rule_actions[] , struct mlx5hws_rule_attr *attr , struct mlx5hws_rule *rule_handle ); ARGUMENTS matcher The matcher in...
mlx5hws_rule_destroy(9)
NAME mlx5hws_rule_destroy - Enqueue destroy rule operation. SYNOPSIS int mlx5hws_rule_destroy (struct mlx5hws_rule *rule , struct mlx5hws_rule_attr *attr ); ARGUMENTS rule The rule destruction to enqueue. attr Rule destruction attributes. RETURN Zero on successful enqueue, non-zero otherwise. ...
mlx5hws_send_queue_action(9)
NAME mlx5hws_send_queue_action - Perform an action on the queue SYNOPSIS int mlx5hws_send_queue_action (struct mlx5hws_context *ctx , u16 queue_id , u32 actions ); ARGUMENTS ctx The context to which the queue belong to. queue_id The id of the queue to perform the action on. actions Acti...
mlx5hws_send_queue_poll(9)
NAME mlx5hws_send_queue_poll - Poll queue for rule creation and deletions completions. SYNOPSIS int mlx5hws_send_queue_poll (struct mlx5hws_context *ctx , u16 queue_id , struct mlx5hws_flow_op_result res[] , u32 res_nb ); ARGUMENTS ctx The context to which the queue belong to. queue_id The id of th...
mlx5hws_table_create(9)
NAME mlx5hws_table_create - Create a new direct rule table. Each table can contain multiple matchers. SYNOPSIS struct mlx5hws_table * mlx5hws_table_create (struct mlx5hws_context *ctx , struct mlx5hws_table_attr *attr ); ARGUMENTS ctx The context in which the new table will be opened. attr Attr...
mlx5hws_table_destroy(9)
NAME mlx5hws_table_destroy - Destroy direct rule table. SYNOPSIS int mlx5hws_table_destroy (struct mlx5hws_table *tbl ); ARGUMENTS tbl Table to destroy. RETURN zero on success non zero otherwise. SEE ALSO Kernel file ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h mlx5hws_is_supported(9)...
mlx5hws_table_get_id(9)
NAME mlx5hws_table_get_id - Get ID of the flow table. SYNOPSIS u32 mlx5hws_table_get_id (struct mlx5hws_table *tbl ); ARGUMENTS tbl Table to get ID of. RETURN ID of the table. SEE ALSO Kernel file ./drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h mlx5hws_is_supported(9), mlx5hws_context_op...
mlx5hws_table_set_default_miss(9)
NAME mlx5hws_table_set_default_miss - Set default miss table for mlx5hws_table by using another mlx5hws_table. Traffic which all table matchers miss will be forwarded to miss table. SYNOPSIS int mlx5hws_table_set_default_miss (struct mlx5hws_table *tbl , struct mlx5hws_table *miss_tbl ); ARGUMENTS tbl Source ...
mlx5r_umr_dmabuf_update_pgsz(9)
NAME mlx5r_umr_dmabuf_update_pgsz - Safely update DMABUF MR page size and its entries accordingly SYNOPSIS int mlx5r_umr_dmabuf_update_pgsz (struct mlx5_ib_mr *mr , u32 xlt_flags , unsigned int page_shift ); ARGUMENTS mr The memory region to update xlt_flags Translation table update flags p...
mlx5r_umr_revoke_mr(9)
NAME mlx5r_umr_revoke_mr - Fence all DMA on the MR SYNOPSIS int mlx5r_umr_revoke_mr (struct mlx5_ib_mr *mr ); ARGUMENTS mr The MR to fence DESCRIPTION Upon return the NIC will not be doing any DMA to the pages under the MR, and any DMA in progress will be completed. Failure of this function indicates the HW...
mlx90632_perform_measurement(9)
NAME mlx90632_perform_measurement - Trigger and retrieve current measurement cycle SYNOPSIS int mlx90632_perform_measurement (struct mlx90632_data *data ); ARGUMENTS data pointer to mlx90632_data object containing regmap information DESCRIPTION Perform a measurement and return latest measurement cycle positio...
mlx90632_perform_measurement_burst(9)
NAME mlx90632_perform_measurement_burst - Trigger and retrieve current measurement cycle in step sleep mode SYNOPSIS int mlx90632_perform_measurement_burst (struct mlx90632_data *data ); ARGUMENTS data pointer to mlx90632_data object containing regmap information DESCRIPTION Perform a measurement and return 2...
mlx90632_pm_interraction_wakeup(9)
NAME mlx90632_pm_interraction_wakeup - Measure time between user interactions to change powermode SYNOPSIS int mlx90632_pm_interraction_wakeup (struct mlx90632_data *data ); ARGUMENTS data pointer to mlx90632_data object containing interaction_ts information DESCRIPTION Switch to continuous mode when interact...
mlx90632_reset_delay(9)
NAME mlx90632_reset_delay - Give the mlx90632 some time to reset properly If this is not done, the following I2C command(s) will not be accepted. SYNOPSIS void mlx90632_reset_delay (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./drivers/iio/temperature/mlx90632.c struct mlx90632_data(9), mlx90632_...
mlx90635_pm_interaction_wakeup(9)
NAME mlx90635_pm_interaction_wakeup - Measure time between user interactions to change powermode SYNOPSIS int mlx90635_pm_interaction_wakeup (struct mlx90635_data *data ); ARGUMENTS data pointer to mlx90635_data object containing interaction_ts information DESCRIPTION Switch to continuous mode when interactio...
mlx90635_reset_delay(9)
NAME mlx90635_reset_delay - Give the mlx90635 some time to reset properly If this is not done, the following I2C command(s) will not be accepted. SYNOPSIS void mlx90635_reset_delay (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./drivers/iio/temperature/mlx90635.c struct mlx90635_data(9), mlx90635_...
mm2gv(1)
delim $$ NAME mm2gv - Matrix Market-DOT converters SYNOPSIS mm2gv [ -cluv? ] [ -Ui ] [ -ooutfile ] [ file ] DESCRIPTION mm2gv converts a sparse matrix of the Matrix Market format to a graph in the GV (formerly DOT) format. If the matrix M is not square, the graph is considered bipartite and the matrix is viewed a...
mm_account_fault(9)
NAME mm_account_fault - Do page fault accounting SYNOPSIS void mm_account_fault (struct mm_struct *mm , struct pt_regs *regs , unsigned long address , unsigned int flags , vm_fault_t ret ); ARGUMENTS mm mm from which memcg should be extracted. It can be NULL. regs the pt_regs struct pointer. ...
mm_communicate(9)
NAME mm_communicate - Adjust the communication buffer to StandAlonneMM and send it to TEE SYNOPSIS efi_status_t mm_communicate (u8 *comm_buf , size_t payload_size ); ARGUMENTS comm_buf locally allocated communication buffer, buffer should be enough big to have some headers and payload payload_size ...
mma9551_app_reset(9)
NAME mma9551_app_reset - reset application SYNOPSIS int mma9551_app_reset (struct i2c_client *client , u32 app_mask ); ARGUMENTS client I2C client app_mask Application to reset DESCRIPTION Reset the given application (using the Reset/Suspend/Clear Control Application) RETURN 0 on success, negative v...
mma9551_gpio_config(9)
NAME mma9551_gpio_config - configure gpio SYNOPSIS int mma9551_gpio_config (struct i2c_client *client , enum mma9551_gpio_pin pin , u8 app_id , u8 bitnum , int polarity ); ARGUMENTS client I2C client pin GPIO pin to configure app_id Application ID bitnum Bit number of st...
mma9551_read_accel_chan(9)
NAME mma9551_read_accel_chan - read accelerometer channel SYNOPSIS int mma9551_read_accel_chan (struct i2c_client *client , const struct iio_chan_spec *chan , int *val , int *val2 ); ARGUMENTS client I2C client chan IIO channel val Pointer to the accelerometer value read va...
mma9551_read_accel_scale(9)
NAME mma9551_read_accel_scale - read accelerometer scale SYNOPSIS int mma9551_read_accel_scale (int *val , int *val2 ); ARGUMENTS val Pointer to the accelerometer scale (int value) val2 Pointer to the accelerometer scale (micro value) DESCRIPTION Read accelerometer scale. RETURN IIO_VAL_INT_P...
mma9551_read_config_byte(9)
NAME mma9551_read_config_byte - read 1 configuration byte SYNOPSIS int mma9551_read_config_byte (struct i2c_client *client , u8 app_id , u16 reg , u8 *val ); ARGUMENTS client I2C client app_id Application ID reg Application register val Pointer to store value read DE...
mma9551_read_config_word(9)
NAME mma9551_read_config_word - read 1 config word SYNOPSIS int mma9551_read_config_word (struct i2c_client *client , u8 app_id , u16 reg , u16 *val ); ARGUMENTS client I2C client app_id Application ID reg Application register val Pointer to store value read DESCRIPT...
mma9551_read_config_words(9)
NAME mma9551_read_config_words - read multiple config words SYNOPSIS int mma9551_read_config_words (struct i2c_client *client , u8 app_id , u16 reg , u8 len , u16 *buf ); ARGUMENTS client I2C client app_id Application ID reg Application register len Length of array to...
mma9551_read_status_byte(9)
NAME mma9551_read_status_byte - read 1 status byte SYNOPSIS int mma9551_read_status_byte (struct i2c_client *client , u8 app_id , u16 reg , u8 *val ); ARGUMENTS client I2C client app_id Application ID reg Application register val Pointer to store value read DESCRIPTI...
mma9551_read_status_word(9)
NAME mma9551_read_status_word - read 1 status word SYNOPSIS int mma9551_read_status_word (struct i2c_client *client , u8 app_id , u16 reg , u16 *val ); ARGUMENTS client I2C client app_id Application ID reg Application register val Pointer to store value read DESCRIPT...
mma9551_read_status_words(9)
NAME mma9551_read_status_words - read multiple status words SYNOPSIS int mma9551_read_status_words (struct i2c_client *client , u8 app_id , u16 reg , u8 len , u16 *buf ); ARGUMENTS client I2C client app_id Application ID reg Application register len Length of array to...
mma9551_read_version(9)
NAME mma9551_read_version - read device version information SYNOPSIS int mma9551_read_version (struct i2c_client *client ); ARGUMENTS client I2C client DESCRIPTION Read version information and print device id and firmware version. Locking note: This function must be called with the device lock held. Locking...
mma9551_set_device_state(9)
NAME mma9551_set_device_state - sets HW power mode SYNOPSIS int mma9551_set_device_state (struct i2c_client *client , bool enable ); ARGUMENTS client I2C client enable Use true to power on device, false to cause the device to enter sleep. DESCRIPTION Set power on/off for device using the Sleep/...
mma9551_set_power_state(9)
NAME mma9551_set_power_state - sets runtime PM state SYNOPSIS int mma9551_set_power_state (struct i2c_client *client , bool on ); ARGUMENTS client I2C client on Use true to power on device, false to power off DESCRIPTION Resume or suspend the device using Runtime PM. The device will suspend af...
mma9551_sleep(9)
NAME mma9551_sleep - sleep SYNOPSIS void mma9551_sleep (int freq ); ARGUMENTS freq Application frequency DESCRIPTION Firmware applications run at a certain frequency on the device. Sleep for one application cycle to make sure the application had time to run once and initialize set values. SEE ALSO Kernel f...
mma9551_update_config_bits(9)
NAME mma9551_update_config_bits - update bits in register SYNOPSIS int mma9551_update_config_bits (struct i2c_client *client , u8 app_id , u16 reg , u8 mask , u8 val ); ARGUMENTS client I2C client app_id Application ID reg Application register mask Mask for the bits to...
mma9551_write_config_byte(9)
NAME mma9551_write_config_byte - write 1 configuration byte SYNOPSIS int mma9551_write_config_byte (struct i2c_client *client , u8 app_id , u16 reg , u8 val ); ARGUMENTS client I2C client app_id Application ID reg Application register val Value to write DESCRIPTION W...
mma9551_write_config_word(9)
NAME mma9551_write_config_word - write 1 config word SYNOPSIS int mma9551_write_config_word (struct i2c_client *client , u8 app_id , u16 reg , u16 val ); ARGUMENTS client I2C client app_id Application ID reg Application register val Value to write DESCRIPTION Write ...
mma9551_write_config_words(9)
NAME mma9551_write_config_words - write multiple config words SYNOPSIS int mma9551_write_config_words (struct i2c_client *client , u8 app_id , u16 reg , u8 len , u16 *buf ); ARGUMENTS client I2C client app_id Application ID reg Application register len Length of array...
mmafm(1)
NAME mmafm - creates AFM font metrics for multiple master fonts SYNOPSIS mmafm [OPTIONS...] font DESCRIPTION Mmafm creates AFM font metrics for PostScript multiple master fonts by interpolation. You pass it an AMFM file (multiple master font metrics) and options specifying the design point you want, and it writes ...
mmap(2)
NAME mmap, munmap - map or unmap files or devices into memory LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <sys/mman.h> void *mmap(size_t length; void addr[length], size_t length, int prot, int flags, int fd, off_t offset); int munmap(size_t length; ...
mmap(3p)
PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. NAME mmap — map pages of memory SYNOPSIS #include <sys/mman.h> ...
mmap2(2)
NAME mmap2 - map files or devices into memory LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <sys/mman.h> /* Definition of MAP_* and PROT_* constants */ #include <sys/syscall.h> /* Definition of SYS_* constants */ #include <unistd.h> void *syscall(SYS_mmap2, unsigned long addr, unsigned long leng...
mmap64(3)
NAME mmap, munmap - map or unmap files or devices into memory LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <sys/mman.h> void *mmap(size_t length; void addr[length], size_t length, int prot, int flags, int fd, off_t offset); int munmap(size_t length; ...
mmap_action_complete(9)
NAME mmap_action_complete - Execute VMA descriptor action. SYNOPSIS int mmap_action_complete (struct mmap_action *action , struct vm_area_struct *vma ); ARGUMENTS action The action to perform. vma The VMA to perform the action upon. DESCRIPTION Similar to mmap_action_prepare. RETURN 0 on succes...
mmap_action_ioremap(9)
NAME mmap_action_ioremap - helper for mmap_prepare hook to specify that a pure PFN I/O remap is required. SYNOPSIS void mmap_action_ioremap (struct vm_area_desc *desc , unsigned long start , unsigned long start_pfn , unsigned long size ); ARGUMENTS desc The VMA descriptor for the VMA requiring remap. s...
mmap_action_ioremap_full(9)
NAME mmap_action_ioremap_full - helper for mmap_prepare hook to specify that the entirety of a VMA should be PFN I/O remapped. SYNOPSIS void mmap_action_ioremap_full (struct vm_area_desc *desc , unsigned long start_pfn ); ARGUMENTS desc The VMA descriptor for the VMA requiring remap. start_pfn The fi...
mmap_action_prepare(9)
NAME mmap_action_prepare - Perform preparatory setup for an VMA descriptor action which need to be performed. SYNOPSIS void mmap_action_prepare (struct mmap_action *action , struct vm_area_desc *desc ); ARGUMENTS action The action to perform. desc The VMA descriptor to prepare for action. SEE ALS...
mmap_action_remap(9)
NAME mmap_action_remap - helper for mmap_prepare hook to specify that a pure PFN remap is required. SYNOPSIS void mmap_action_remap (struct vm_area_desc *desc , unsigned long start , unsigned long start_pfn , unsigned long size ); ARGUMENTS desc The VMA descriptor for the VMA requiring remap. start ...
mmap_action_remap_full(9)
NAME mmap_action_remap_full - helper for mmap_prepare hook to specify that the entirety of a VMA should be PFN remapped. SYNOPSIS void mmap_action_remap_full (struct vm_area_desc *desc , unsigned long start_pfn ); ARGUMENTS desc The VMA descriptor for the VMA requiring remap. start_pfn The first PFN ...
mmap_address_hint_valid(9)
NAME mmap_address_hint_valid - Validate the address hint of mmap SYNOPSIS bool mmap_address_hint_valid (unsigned long addr , unsigned long len ); ARGUMENTS addr Address hint len Mapping length DESCRIPTION Check whether addr and addr + len result in a valid mapping. On 32bit this only checks w...
mmap_region(9)
NAME mmap_region - Actually perform the userland mapping of a VMA into current->mm with known, aligned and overflow-checked @addr and @len, and correctly determined VMA flags @vm_flags and page offset @pgoff. SYNOPSIS unsigned long mmap_region (struct file *file , unsigned long addr , unsigned long len , vm_flags_t vm...
mmc35240_raw_to_mgauss(9)
NAME mmc35240_raw_to_mgauss - convert raw readings to milli gauss. Also apply compensation for output value. SYNOPSIS int mmc35240_raw_to_mgauss (struct mmc35240_data *data , int index , __le16 buf[] , int *val ); ARGUMENTS data device private data index axis index for which we want the conversio...
mmc_add_host(9)
NAME mmc_add_host - initialise host hardware SYNOPSIS int mmc_add_host (struct mmc_host *host ); ARGUMENTS host mmc host DESCRIPTION Register the host with the driver model. The host must be prepared to start servicing requests before this function completes. SEE ALSO Kernel file ./drivers/mmc/core/host.c mm...
mmc_alloc_host(9)
NAME mmc_alloc_host - initialise the per-host structure. SYNOPSIS struct mmc_host * mmc_alloc_host (int extra , struct device *dev ); ARGUMENTS extra sizeof private data structure dev pointer to host device model structure DESCRIPTION Initialise the per-host structure. SEE ALSO Kernel file ./d...
mmc_attach_sd_uhs2(9)
NAME mmc_attach_sd_uhs2 - select UHS2 interface SYNOPSIS int mmc_attach_sd_uhs2 (struct mmc_host *host ); ARGUMENTS host MMC host DESCRIPTION Try to select UHS2 interface and initialize the bus for a given frequency, freq. RETURN 0 on success, non-zero error on failure SEE ALSO Kernel file ./drivers/mmc/cor...
mmc_claim_host(9)
NAME mmc_claim_host - exclusively claim a host SYNOPSIS void mmc_claim_host (struct mmc_host *host ); ARGUMENTS host mmc host to claim DESCRIPTION Claim a host for a set of operations. SEE ALSO Kernel file ./drivers/mmc/core/core.h mmc_pre_req(9), mmc_post_req(9) April 2026 ...
mmc_cqe_post_req(9)
NAME mmc_cqe_post_req - CQE post process of a completed MMC request SYNOPSIS void mmc_cqe_post_req (struct mmc_host *host , struct mmc_request *mrq ); ARGUMENTS host MMC host mrq MMC request to be processed SEE ALSO Kernel file ./drivers/mmc/core/core.c mmc_request_done(9), mmc_cqe_request...
mmc_cqe_request_done(9)
NAME mmc_cqe_request_done - CQE has finished processing an MMC request SYNOPSIS void mmc_cqe_request_done (struct mmc_host *host , struct mmc_request *mrq ); ARGUMENTS host MMC host which completed request mrq MMC request which completed DESCRIPTION CQE drivers should call this function when t...
mmc_detect_change(9)
NAME mmc_detect_change - process change of state on a MMC socket SYNOPSIS void mmc_detect_change (struct mmc_host *host , unsigned long delay ); ARGUMENTS host host which changed state. delay optional delay to wait before detection (jiffies) DESCRIPTION MMC drivers should call this when they det...
mmc_erase(9)
NAME mmc_erase - erase sectors. SYNOPSIS int mmc_erase (struct mmc_card *card , sector_t from , unsigned int nr , unsigned int arg ); ARGUMENTS card card to erase from first sector to erase nr number of sectors to erase arg erase command argument DESCRIPTION Cal...
mmc_first_nonreserved_index(9)
NAME mmc_first_nonreserved_index - get the first index that is not reserved SYNOPSIS int mmc_first_nonreserved_index (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./drivers/mmc/core/host.c mmc_retune_enable(9), mmc_retune_disable(9), mmc_of_parse(9), mmc_of_parse_voltage(9), mmc_alloc_host(9), mmc...
mmc_free_host(9)
NAME mmc_free_host - free the host structure SYNOPSIS void mmc_free_host (struct mmc_host *host ); ARGUMENTS host mmc host DESCRIPTION Free the host once all references to it have been dropped. SEE ALSO Kernel file ./drivers/mmc/core/host.c mmc_retune_enable(9), mmc_retune_disable(9), mmc_of_parse(9), mmc_of...
mmc_gpiod_request_cd(9)
NAME mmc_gpiod_request_cd - request a gpio descriptor for card-detection SYNOPSIS int mmc_gpiod_request_cd (struct mmc_host *host , const char *con_id , unsigned int idx , bool override_active_level , unsigned int debounce ); ARGUMENTS host mmc host con_id function within the GPIO consumer ...
mmc_gpiod_request_ro(9)
NAME mmc_gpiod_request_ro - request a gpio descriptor for write protection SYNOPSIS int mmc_gpiod_request_ro (struct mmc_host *host , const char *con_id , unsigned int idx , unsigned int debounce ); ARGUMENTS host mmc host con_id function within the GPIO consumer idx index of the G...
mmc_gpiod_set_cd_config(9)
NAME mmc_gpiod_set_cd_config - set config for card-detection GPIO SYNOPSIS int mmc_gpiod_set_cd_config (struct mmc_host *host , unsigned long config ); ARGUMENTS host mmc host config Generic pinconf config (from pinconf_to_config_packed) DESCRIPTION This can be used by mmc host drivers to fixup a...
mmc_handle_undervoltage(9)
NAME mmc_handle_undervoltage - Handle an undervoltage event on the MMC bus SYNOPSIS int mmc_handle_undervoltage (struct mmc_host *host ); ARGUMENTS host The MMC host that detected the undervoltage condition DESCRIPTION This function is called when an undervoltage event is detected on one of the MMC regulators...
mmc_hsq_finalize_request(9)
NAME mmc_hsq_finalize_request - finalize one request if the request is done SYNOPSIS bool mmc_hsq_finalize_request (struct mmc_host *mmc , struct mmc_request *mrq ); ARGUMENTS mmc the host controller mrq the request need to be finalized DESCRIPTION Return true if we finalized the correspondin...
mmc_hw_reset(9)
NAME mmc_hw_reset - reset the card in hardware SYNOPSIS int mmc_hw_reset (struct mmc_card *card ); ARGUMENTS card card to be reset DESCRIPTION Hard reset the card. This function is only for upper layers, like the block layer or card drivers. You cannot use it in host drivers (struct mmc_card might be gone the...
mmc_init_queue(9)
NAME mmc_init_queue - initialise a queue structure. SYNOPSIS struct gendisk * mmc_init_queue (struct mmc_queue *mq , struct mmc_card *card , unsigned int features ); ARGUMENTS mq mmc queue card mmc card to attach this queue features block layer features (BLK_FEAT_*) DESCRIPTION Ini...
mmc_interrupt_hpi(9)
NAME mmc_interrupt_hpi - Issue for High priority Interrupt SYNOPSIS int mmc_interrupt_hpi (struct mmc_card *card ); ARGUMENTS card the MMC card associated with the HPI transfer DESCRIPTION Issued High Priority Interrupt, and check for card status until out-of prg-state. SEE ALSO Kernel file ./drivers/mmc/cor...
mmc_is_req_done(9)
NAME mmc_is_req_done - Determine if a 'cap_cmd_during_tfr' request is done SYNOPSIS bool mmc_is_req_done (struct mmc_host *host , struct mmc_request *mrq ); ARGUMENTS host MMC host mrq MMC request DESCRIPTION mmc_is_req_done is used with requests that have mrq->cap_cmd_during_tfr = tr...
mmc_ocrbitnum_to_vdd(9)
NAME mmc_ocrbitnum_to_vdd - Convert a OCR bit number to its voltage SYNOPSIS int mmc_ocrbitnum_to_vdd (int vdd_bit , int *min_uV , int *max_uV ); ARGUMENTS vdd_bit OCR bit number min_uV minimum voltage value (mV) max_uV maximum voltage value (mV) DESCRIPTION This function returns the vo...
mmc_of_parse(9)
NAME mmc_of_parse - parse host's device properties SYNOPSIS int mmc_of_parse (struct mmc_host *host ); ARGUMENTS host host whose properties should be parsed. DESCRIPTION To keep the rest of the MMC subsystem unaware of whether DT has been used to instantiate and configure this host instance or not, we parse t...