id
stringlengths
4
63
text
stringlengths
153
8.81M
vma_assert_stabilised(9)
NAME vma_assert_stabilised - assert that this VMA cannot be changed from underneath us either by having a VMA or mmap lock held. SYNOPSIS void vma_assert_stabilised (struct vm_area_struct *vma ); ARGUMENTS vma The VMA whose stability we wish to assess. DESCRIPTION If lockdep is enabled we can precisely ensur...
vma_assert_write_locked(9)
NAME vma_assert_write_locked - assert that @vma holds a VMA write lock. SYNOPSIS void vma_assert_write_locked (struct vm_area_struct *vma ); ARGUMENTS vma The VMA to assert. SEE ALSO Kernel file ./include/linux/mmap_lock.h vma_refcount_put(9), vma_start_write_killable(9), vma_assert_locked(9), vma_assert_sta...
vma_flag_t(9)
Kernel API(9) API Manual Kernel API(9) NAME typedef vma_flag_t - specifies an individual VMA flag by bit number. Description Thi...
vma_is_special_huge(9)
NAME vma_is_special_huge - Are transhuge page-table entries considered special? SYNOPSIS bool vma_is_special_huge (const struct vm_area_struct *vma ); ARGUMENTS vma Pointer to the struct vm_area_struct to consider DESCRIPTION Whether transhuge page-table entries are considered "special" following the definit...
vma_kernel_pagesize(9)
NAME vma_kernel_pagesize - Page size granularity for this VMA. SYNOPSIS unsigned long vma_kernel_pagesize (struct vm_area_struct *vma ); ARGUMENTS vma The user mapping. DESCRIPTION Folios in this VMA will be aligned to, and at least the size of the number of bytes returned by this function. RETURN The defau...
vma_lookup(9)
NAME vma_lookup - Find a VMA at a specific address SYNOPSIS struct vm_area_struct * vma_lookup (struct mm_struct *mm , unsigned long addr ); ARGUMENTS mm The process address space. addr The user address. RETURN The vm_area_struct at the given address, NULL otherwise. SEE ALSO Kernel file ....
vma_modify_flags(9)
NAME vma_modify_flags - Perform any necessary split/merge in preparation for setting VMA flags to *@vm_flags in the range @start to @end contained within @vma. SYNOPSIS struct vm_area_struct * vma_modify_flags (struct vma_iterator *vmi , struct vm_area_struct *prev , struct vm_area_struct *vma , unsigned long start , ...
vma_modify_flags_uffd(9)
NAME vma_modify_flags_uffd - Perform any necessary split/merge in preparation for setting VMA flags to @vm_flags and UFFD context to @new_ctx in the range @start to @end contained within @vma. SYNOPSIS struct vm_area_struct * vma_modify_flags_uffd (struct vma_iterator *vmi , struct vm_area_struct *prev , stru...
vma_modify_name(9)
NAME vma_modify_name - Perform any necessary split/merge in preparation for setting anonymous VMA name to @new_name in the range @start to @end contained within @vma. SYNOPSIS struct vm_area_struct * vma_modify_name (struct vma_iterator *vmi , struct vm_area_struct *prev , struct vm_area_struct *vma , unsigned long st...
vma_modify_policy(9)
NAME vma_modify_policy - Perform any necessary split/merge in preparation for setting NUMA policy to @new_pol in the range @start to @end contained within @vma. SYNOPSIS struct vm_area_struct * vma_modify_policy (struct vma_iterator *vmi , struct vm_area_struct *prev , struct vm_area_struct *vma , unsigned long start ...
vma_refcount_put(9)
NAME vma_refcount_put - Drop reference count in VMA vm_refcnt field due to a read-lock being dropped. SYNOPSIS void vma_refcount_put (struct vm_area_struct *vma ); ARGUMENTS vma The VMA whose reference count we wish to decrement. DESCRIPTION If we were the last reader, wake up threads waiting to obtain an ex...
vma_start_write_killable(9)
NAME vma_start_write_killable - Begin writing to a VMA. SYNOPSIS int vma_start_write_killable (struct vm_area_struct *vma ); ARGUMENTS vma The VMA we are going to modify. DESCRIPTION Exclude concurrent readers under the per-VMA lock until the currently write-locked mmap_lock is dropped or downgraded. CONTEX...
vmalloc(9)
NAME vmalloc - allocate virtually contiguous memory SYNOPSIS void * vmalloc (unsigned long size ); ARGUMENTS size allocation size DESCRIPTION Allocate enough pages to cover size from the page level allocator and map them into contiguous kernel virtual space. For tight control over page level allocator and pr...
vmalloc_32(9)
NAME vmalloc_32 - allocate virtually contiguous memory (32bit addressable) SYNOPSIS void * vmalloc_32 (unsigned long size ); ARGUMENTS size allocation size DESCRIPTION Allocate enough 32bit PA addressable pages to cover size from the page level allocator and map them into contiguous kernel virtual space. RET...
vmalloc_32_user(9)
NAME vmalloc_32_user - allocate zeroed virtually contiguous 32bit memory SYNOPSIS void * vmalloc_32_user (unsigned long size ); ARGUMENTS size allocation size DESCRIPTION The resulting memory area is 32bit addressable and zeroed so it can be mapped to userspace without leaking data. RETURN pointer to the all...
vmalloc_array(9)
NAME vmalloc_array - allocate memory for a virtually contiguous array. SYNOPSIS void * vmalloc_array (size_t n , size_t size ); ARGUMENTS n number of elements. size element size. SEE ALSO Kernel file ./mm/util.c kfree_const(9), __kmemdup_nul(9), kstrdup(9), kstrdup_const(9), kstrndup(...
vmalloc_huge_node(9)
NAME vmalloc_huge_node - allocate virtually contiguous memory, allow huge pages SYNOPSIS void * vmalloc_huge_node (unsigned long size , gfp_t gfp_mask , int node ); ARGUMENTS size allocation size gfp_mask flags for the page level allocator node node to use for allocation or NUMA_NO_NO...
vmalloc_node(9)
NAME vmalloc_node - allocate memory on a specific node SYNOPSIS void * vmalloc_node (unsigned long size , int node ); ARGUMENTS size allocation size node numa node DESCRIPTION Allocate enough pages to cover size from the page level allocator and map them into contiguous kernel virtual space. F...
vmalloc_user(9)
NAME vmalloc_user - allocate zeroed virtually contiguous memory for userspace SYNOPSIS void * vmalloc_user (unsigned long size ); ARGUMENTS size allocation size DESCRIPTION The resulting memory area is zeroed so it can be mapped to userspace without leaking data. RETURN pointer to the allocated memory or NUL...
vmap(9)
NAME vmap - map an array of pages into virtually contiguous space SYNOPSIS void * vmap (struct page **pages , unsigned int count , unsigned long flags , pgprot_t prot ); ARGUMENTS pages array of page pointers count number of pages to map flags vm_area->flags prot page ...
vmap_pages_range(9)
NAME vmap_pages_range - map pages to a kernel virtual address SYNOPSIS int vmap_pages_range (unsigned long addr , unsigned long end , pgprot_t prot , struct page **pages , unsigned int page_shift ); ARGUMENTS addr start of the VM area to map end end of the VM area to map (non-inclusive) ...
vmap_pfn(9)
NAME vmap_pfn - map an array of PFNs into virtually contiguous space SYNOPSIS void * vmap_pfn (unsigned long *pfns , unsigned int count , pgprot_t prot ); ARGUMENTS pfns array of PFNs count number of pages to map prot page protection for the mapping DESCRIPTION Maps count PFNs fro...
vmballoon_add_page(9)
NAME vmballoon_add_page - adds a page towards lock/unlock operation. SYNOPSIS void vmballoon_add_page (struct vmballoon *b , unsigned int idx , struct page *p ); ARGUMENTS b pointer to the balloon. idx index of the page to be ballooned in this batch. p pointer to the page t...
vmballoon_alloc_page_list(9)
NAME vmballoon_alloc_page_list - allocates a list of pages. SYNOPSIS int vmballoon_alloc_page_list (struct vmballoon *b , struct vmballoon_ctl *ctl , unsigned int req_n_pages ); ARGUMENTS b pointer to the balloon. ctl pointer for the struct vmballoon_ctl, which defines the operation. ...
vmballoon_change(9)
NAME vmballoon_change - retrieve the required balloon change SYNOPSIS int64_t vmballoon_change (struct vmballoon *b ); ARGUMENTS b pointer for the balloon. RETURN the required change for the balloon size. A positive number indicates inflation, a negative number indicates a deflation. SEE ALSO Kernel file...
vmballoon_debug_show(9)
NAME vmballoon_debug_show - shows statistics of balloon operations. SYNOPSIS int vmballoon_debug_show (struct seq_file *f , void *offset ); ARGUMENTS f pointer to the struct seq_file. offset ignored. DESCRIPTION Provides the statistics that can be accessed in vmmemctl in the debugfs. To ...
vmballoon_deflate(9)
NAME vmballoon_deflate - Decrease the size of the balloon. SYNOPSIS unsigned long vmballoon_deflate (struct vmballoon *b , uint64_t n_frames , bool coordinated ); ARGUMENTS b pointer to the balloon n_frames the number of frames to deflate. If zero, automatically calculated according to the target...
vmballoon_deinit_batching(9)
NAME vmballoon_deinit_batching - disables batching mode. SYNOPSIS void vmballoon_deinit_batching (struct vmballoon *b ); ARGUMENTS b pointer to struct vmballoon. DESCRIPTION Disables batching, by deallocating the page for communication with the hypervisor and disabling the static key to indicate that batch...
vmballoon_dequeue_page_list(9)
NAME vmballoon_dequeue_page_list - Dequeues page lists for deflation. SYNOPSIS void vmballoon_dequeue_page_list (struct vmballoon *b , struct list_head *pages , unsigned int *n_pages , enum vmballoon_page_size_type page_size , unsigned int n_req_pages ); ARGUMENTS b pointer to balloon. pages l...
vmballoon_enqueue_page_list(9)
NAME vmballoon_enqueue_page_list - Enqueues list of pages after inflation. SYNOPSIS void vmballoon_enqueue_page_list (struct vmballoon *b , struct list_head *pages , unsigned int *n_pages , enum vmballoon_page_size_type page_size ); ARGUMENTS b pointer to balloon. pages list of pages to enqueu...
vmballoon_handle_one_result(9)
NAME vmballoon_handle_one_result - Handle lock/unlock result for a single page. SYNOPSIS int vmballoon_handle_one_result (struct vmballoon *b , struct page *page , enum vmballoon_page_size_type page_size , unsigned long status ); ARGUMENTS b pointer for struct vmballoon. page pointer for the ...
vmballoon_inflate(9)
NAME vmballoon_inflate - Inflate the balloon towards its target size. SYNOPSIS void vmballoon_inflate (struct vmballoon *b ); ARGUMENTS b pointer to the balloon. SEE ALSO Kernel file ./drivers/misc/vmw_balloon.c enum vmballoon_cmd_type(9), struct vmballoon_batch_entry(9), vmballoon_send_guest_id(9), vmba...
vmballoon_init_batching(9)
NAME vmballoon_init_batching - enable batching mode. SYNOPSIS int vmballoon_init_batching (struct vmballoon *b ); ARGUMENTS b pointer to struct vmballoon. DESCRIPTION Enables batching, by allocating a page for communication with the hypervisor and enabling the static_key to use batching. RETURN zero on su...
vmballoon_lock(9)
NAME vmballoon_lock - lock or unlock a batch of pages. SYNOPSIS int vmballoon_lock (struct vmballoon *b , struct vmballoon_ctl *ctl ); ARGUMENTS b pointer to the balloon. ctl pointer for the struct vmballoon_ctl, which defines the operation. DESCRIPTION Notifies the host of about ballooned ...
vmballoon_lock_op(9)
NAME vmballoon_lock_op - notifies the host about inflated/deflated pages. SYNOPSIS unsigned long vmballoon_lock_op (struct vmballoon *b , unsigned int num_pages , enum vmballoon_page_size_type page_size , enum vmballoon_op op ); ARGUMENTS b pointer to the balloon. num_pages number of inflated/defl...
vmballoon_mark_page_offline(9)
NAME vmballoon_mark_page_offline - mark a page as offline SYNOPSIS void vmballoon_mark_page_offline (struct page *page , enum vmballoon_page_size_type page_size ); ARGUMENTS page pointer for the page. page_size the size of the page. SEE ALSO Kernel file ./drivers/misc/vmw_balloon.c enum vmba...
vmballoon_mark_page_online(9)
NAME vmballoon_mark_page_online - mark a page as online SYNOPSIS void vmballoon_mark_page_online (struct page *page , enum vmballoon_page_size_type page_size ); ARGUMENTS page pointer for the page. page_size the size of the page. SEE ALSO Kernel file ./drivers/misc/vmw_balloon.c enum vmballoon_cmd...
vmballoon_migratepage(9)
NAME vmballoon_migratepage - migrates a balloon page. SYNOPSIS int vmballoon_migratepage (struct balloon_dev_info *b_dev_info , struct page *newpage , struct page *page , enum migrate_mode mode ); ARGUMENTS b_dev_info balloon device information descriptor. newpage the page to which page should be migrate...
vmballoon_page_in_frames(9)
NAME vmballoon_page_in_frames - returns the number of frames in a page. SYNOPSIS unsigned int vmballoon_page_in_frames (enum vmballoon_page_size_type page_size ); ARGUMENTS page_size the size of the page. RETURN the number of 4k frames. SEE ALSO Kernel file ./drivers/misc/vmw_balloon.c enum vmballoon_cmd_type(9),...
vmballoon_page_order(9)
NAME vmballoon_page_order - return the order of the page SYNOPSIS unsigned int vmballoon_page_order (enum vmballoon_page_size_type page_size ); ARGUMENTS page_size the size of the page. RETURN the allocation order. SEE ALSO Kernel file ./drivers/misc/vmw_balloon.c enum vmballoon_cmd_type(9), struct vmballoon_batc...
vmballoon_pop(9)
NAME vmballoon_pop - Quickly release all pages allocate for the balloon. SYNOPSIS void vmballoon_pop (struct vmballoon *b ); ARGUMENTS b pointer to the balloon. DESCRIPTION This function is called when host decides to "reset" balloon for one reason or another. Unlike normal "deflate" we do not (shall not) ...
vmballoon_release_page_list(9)
NAME vmballoon_release_page_list - Releases a page list SYNOPSIS void vmballoon_release_page_list (struct list_head *page_list , int *n_pages , enum vmballoon_page_size_type page_size ); ARGUMENTS page_list list of pages to release. n_pages pointer to the number of pages. page_size whether the...
vmballoon_send_get_target(9)
NAME vmballoon_send_get_target - Retrieve desired balloon size from the host. SYNOPSIS int vmballoon_send_get_target (struct vmballoon *b ); ARGUMENTS b pointer to the balloon. RETURN zero on success, EINVAL if limit does not fit in 32-bit, as required by the host-guest protocol and EIO if an error occurre...
vmballoon_send_guest_id(9)
NAME vmballoon_send_guest_id - communicate guest type to the host. SYNOPSIS int vmballoon_send_guest_id (struct vmballoon *b ); ARGUMENTS b pointer to the balloon. DESCRIPTION Communicate guest type to the host so that it can adjust ballooning algorithm to the one most appropriate for the guest. This ...
vmballoon_shrinker_count(9)
NAME vmballoon_shrinker_count - return the number of ballooned pages. SYNOPSIS unsigned long vmballoon_shrinker_count (struct shrinker *shrinker , struct shrink_control *sc ); ARGUMENTS shrinker pointer to the balloon shrinker. sc page reclaim information. RETURN number of 4k pages that are alloc...
vmballoon_shrinker_scan(9)
NAME vmballoon_shrinker_scan - deflate the balloon due to memory pressure. SYNOPSIS unsigned long vmballoon_shrinker_scan (struct shrinker *shrinker , struct shrink_control *sc ); ARGUMENTS shrinker pointer to the balloon shrinker. sc page reclaim information. RETURN number of pages that were fre...
vmballoon_split_refused_pages(9)
NAME vmballoon_split_refused_pages - Split the 2MB refused pages to 4k. SYNOPSIS void vmballoon_split_refused_pages (struct vmballoon_ctl *ctl ); ARGUMENTS ctl pointer for the struct vmballoon_ctl, which defines the operation. DESCRIPTION If inflation of 2MB pages was denied by the hypervisor, it is likely...
vmballoon_status_page(9)
NAME vmballoon_status_page - returns the status of (un)lock operation SYNOPSIS unsigned long vmballoon_status_page (struct vmballoon *b , int idx , struct page **p ); ARGUMENTS b pointer to the balloon. idx index for the page for which the operation is performed. p pointer ...
vmballoon_vmci_init(9)
NAME vmballoon_vmci_init - Initialize vmci doorbell. SYNOPSIS int vmballoon_vmci_init (struct vmballoon *b ); ARGUMENTS b pointer to the balloon. RETURN zero on success or when wakeup command not supported. Error-code otherwise. DESCRIPTION Initialize vmci doorbell, to get notified as soon as balloon chan...
vmballoon_work(9)
NAME vmballoon_work - periodic balloon worker for reset, inflation and deflation. SYNOPSIS void vmballoon_work (struct work_struct *work ); ARGUMENTS work pointer to the work_struct which is provided by the workqueue. DESCRIPTION Resets the protocol if needed, gets the new size and adjusts balloon as needed. ...
vmbus_allocate_mmio(9)
NAME vmbus_allocate_mmio - Pick a memory-mapped I/O range. SYNOPSIS int vmbus_allocate_mmio (struct resource **new , struct hv_device *device_obj , resource_size_t min , resource_size_t max , resource_size_t size , resource_size_t align , bool fb_overlap_ok ); ARGUMENTS new If successful, supplied a pointer t...
vmbus_driver_unregister(9)
NAME vmbus_driver_unregister - Unregister a vmbus's driver SYNOPSIS void vmbus_driver_unregister (struct hv_driver *hv_driver ); ARGUMENTS hv_driver Pointer to driver structure you want to un-register DESCRIPTION Un-register the given driver that was previous registered with a call to vmbus_driver_register SEE AL...
vmbus_free_mmio(9)
NAME vmbus_free_mmio - Free a memory-mapped I/O range. SYNOPSIS void vmbus_free_mmio (resource_size_t start , resource_size_t size ); ARGUMENTS start Base address of region to release. size Size of the range to be allocated DESCRIPTION This function releases anything requested by vmbus_mmio_allo...
vmbus_prep_negotiate_resp(9)
NAME vmbus_prep_negotiate_resp - Create default response for Negotiate message SYNOPSIS bool vmbus_prep_negotiate_resp (struct icmsg_hdr *icmsghdrp , u8 *buf , u32 buflen , const int *fw_version , int fw_vercnt , const int *srv_version , int srv_vercnt , int *nego_fw_version , int *nego_srv_version ); ARGUMENTS icmsg...
vmbus_sendpacket(9)
NAME vmbus_sendpacket - Send the specified buffer on the given channel SYNOPSIS int vmbus_sendpacket (struct vmbus_channel *channel , void *buffer , u32 bufferlen , u64 requestid , enum vmbus_packet_type type , u32 flags ); ARGUMENTS channel Pointer to vmbus_channel structure buffer Pointer to the bu...
vmbus_sendpacket_getid(9)
NAME vmbus_sendpacket_getid - Send the specified buffer on the given channel SYNOPSIS int vmbus_sendpacket_getid (struct vmbus_channel *channel , void *buffer , u32 bufferlen , u64 requestid , u64 *trans_id , enum vmbus_packet_type type , u32 flags ); ARGUMENTS channel Pointer to vmbus_channel structure b...
vmcore-dmesg(8)
NAME vmcore-dmesg SYNOPSIS vmcore-dmesg vmcore DESCRIPTION vmcore-dmesg extracts the dmesg from a vmcore and write it to standard out. vmcore-dmesg works against either /proc/vmcore in a crash dump capture context or a copy of /proc/vmcore that has been saved for later analysis. A single build of vmcore-dmesg shoul...
vmcore_add_device_dump(9)
NAME vmcore_add_device_dump - Add a buffer containing device dump to vmcore SYNOPSIS int vmcore_add_device_dump (struct vmcoredd_data *data ); ARGUMENTS data dump info. DESCRIPTION Allocate a buffer and invoke the calling driver's dump collect routine. Write ELF note at the beginning of the buffer to indicat...
vmcore_alloc_buf(9)
NAME vmcore_alloc_buf - allocate buffer in vmalloc memory SYNOPSIS char * vmcore_alloc_buf (size_t size ); ARGUMENTS size size of buffer DESCRIPTION If CONFIG_MMU is defined, use vmalloc_user to allow users to mmap the buffer to user-space by means of remap_vmalloc_range. If CONFIG_MMU is not defined, use ...
vmcoredd_update_program_headers(9)
NAME vmcoredd_update_program_headers - Update all ELF program headers SYNOPSIS void vmcoredd_update_program_headers (char *elfptr , size_t elfnotesz , size_t vmcoreddsz ); ARGUMENTS elfptr Pointer to elf header elfnotesz Size of elf notes aligned to page size vmcoreddsz Size of device dumps to...
vmcoredd_update_size(9)
NAME vmcoredd_update_size - Update the total size of the device dumps and update ELF header SYNOPSIS void vmcoredd_update_size (size_t dump_size ); ARGUMENTS dump_size Size of the current device dump to be added to total size DESCRIPTION Update the total size of all the device dumps and update the ELF program head...
vmcoredd_write_header(9)
NAME vmcoredd_write_header - Write vmcore device dump header at the beginning of the dump's buffer. SYNOPSIS void vmcoredd_write_header (void *buf , struct vmcoredd_data *data , u32 size ); ARGUMENTS buf Output buffer where the note is written data Dump info size Size of the dump...
vme_alloc_consistent(9)
NAME vme_alloc_consistent - Allocate contiguous memory. SYNOPSIS void * vme_alloc_consistent (struct vme_resource *resource , size_t size , dma_addr_t *dma ); ARGUMENTS resource Pointer to VME resource. size Size of allocation required. dma Pointer to variable to store physical addre...
vme_bus_num(9)
NAME vme_bus_num - Retrieve bus number SYNOPSIS int vme_bus_num (struct vme_dev *vdev ); ARGUMENTS vdev Pointer to VME device struct vme_dev assigned to driver instance. DESCRIPTION Retrieve the bus enumeration associated with the provided VME device. RETURN The bus number on success, -EINVAL if VME bridge c...
vme_dma_free(9)
NAME vme_dma_free - Free a VME DMA resource. SYNOPSIS int vme_dma_free (struct vme_resource *resource ); ARGUMENTS resource Pointer to VME DMA resource. DESCRIPTION Free the provided DMA resource so that it may be reallocated. RETURN Zero on success, -EINVAL on invalid VME resource, -EBUSY if resource is still a...
vme_dma_free_attribute(9)
NAME vme_dma_free_attribute - Free DMA list attribute. SYNOPSIS void vme_dma_free_attribute (struct vme_dma_attr *attributes ); ARGUMENTS attributes Pointer to DMA list attribute. DESCRIPTION Free VME DMA list attribute. VME DMA list attributes can be safely freed once vme_dma_list_add has returned. SEE ALSO Kerne...
vme_dma_list_add(9)
NAME vme_dma_list_add - Add entry to a VME DMA list. SYNOPSIS int vme_dma_list_add (struct vme_dma_list *list , struct vme_dma_attr *src , struct vme_dma_attr *dest , size_t count ); ARGUMENTS list Pointer to VME list. src Pointer to DMA list attribute to use as source. dest Poin...
vme_dma_list_exec(9)
NAME vme_dma_list_exec - Queue a VME DMA list for execution. SYNOPSIS int vme_dma_list_exec (struct vme_dma_list *list ); ARGUMENTS list Pointer to VME list. DESCRIPTION Queue the provided VME DMA list for execution. The call will return once the list has been executed. RETURN Zero on success, -EINVAL if ope...
vme_dma_list_free(9)
NAME vme_dma_list_free - Free a VME DMA list. SYNOPSIS int vme_dma_list_free (struct vme_dma_list *list ); ARGUMENTS list Pointer to VME list. DESCRIPTION Free the provided DMA list and all its entries. RETURN Zero on success, -EINVAL on invalid VME resource, -EBUSY if resource is still in use. Hardware spec...
vme_dma_pattern_attribute(9)
NAME vme_dma_pattern_attribute - Create "Pattern" type VME DMA list attribute. SYNOPSIS struct vme_dma_attr * vme_dma_pattern_attribute (u32 pattern , u32 type ); ARGUMENTS pattern Value to use used as pattern type Type of pattern to be written. DESCRIPTION Create VME DMA list attribute for patter...
vme_dma_pci_attribute(9)
NAME vme_dma_pci_attribute - Create "PCI" type VME DMA list attribute. SYNOPSIS struct vme_dma_attr * vme_dma_pci_attribute (dma_addr_t address ); ARGUMENTS address PCI base address for DMA transfer. DESCRIPTION Create VME DMA list attribute pointing to a location on PCI for DMA transfers. It is the responsibili...
vme_dma_request(9)
NAME vme_dma_request - Request a DMA controller. SYNOPSIS struct vme_resource * vme_dma_request (struct vme_dev *vdev , u32 route ); ARGUMENTS vdev Pointer to VME device struct vme_dev assigned to driver instance. route Required src/destination combination. DESCRIPTION Request a VME DMA controll...
vme_dma_vme_attribute(9)
NAME vme_dma_vme_attribute - Create "VME" type VME DMA list attribute. SYNOPSIS struct vme_dma_attr * vme_dma_vme_attribute (unsigned long long address , u32 aspace , u32 cycle , u32 dwidth ); ARGUMENTS address VME base address for DMA transfer. aspace VME address space to use for DMA transfer. ...
vme_free_consistent(9)
NAME vme_free_consistent - Free previously allocated memory. SYNOPSIS void vme_free_consistent (struct vme_resource *resource , size_t size , void *vaddr , dma_addr_t dma ); ARGUMENTS resource Pointer to VME resource. size Size of allocation to free. vaddr Virtual address of allocation...
vme_get_size(9)
NAME vme_get_size - Helper function returning size of a VME window SYNOPSIS size_t vme_get_size (struct vme_resource *resource ); ARGUMENTS resource Pointer to VME slave or master resource. DESCRIPTION Determine the size of the VME window provided. This is a helper function, wrappering the call to vme_master_get ...
vme_irq_free(9)
NAME vme_irq_free - Free a VME interrupt. SYNOPSIS void vme_irq_free (struct vme_dev *vdev , int level , int statid ); ARGUMENTS vdev Pointer to VME device struct vme_dev assigned to driver instance. level Interrupt priority of interrupt being freed. statid Interrupt vector of interr...
vme_irq_generate(9)
NAME vme_irq_generate - Generate VME interrupt. SYNOPSIS int vme_irq_generate (struct vme_dev *vdev , int level , int statid ); ARGUMENTS vdev Pointer to VME device struct vme_dev assigned to driver instance. level Interrupt priority at which to assert the interrupt. statid Interrupt...
vme_irq_request(9)
NAME vme_irq_request - Request a specific VME interrupt. SYNOPSIS int vme_irq_request (struct vme_dev *vdev , int level , int statid , void (*callback)(int level, int statid, void *priv_data) , void *priv_data ); ARGUMENTS vdev Pointer to VME device struct vme_dev assigned to driver instance. level ...
vme_lm_attach(9)
NAME vme_lm_attach - Provide callback for location monitor address SYNOPSIS int vme_lm_attach (struct vme_resource *resource , int monitor , void (*callback)(void *) , void *data ); ARGUMENTS resource Pointer to VME location monitor resource. monitor Offset to which callback should be attached. ...
vme_lm_count(9)
NAME vme_lm_count - Determine number of VME Addresses monitored SYNOPSIS int vme_lm_count (struct vme_resource *resource ); ARGUMENTS resource Pointer to VME location monitor resource. DESCRIPTION The number of contiguous addresses monitored is hardware dependent. Return the number of contiguous addresses monito...
vme_lm_detach(9)
NAME vme_lm_detach - Remove callback for location monitor address SYNOPSIS int vme_lm_detach (struct vme_resource *resource , int monitor ); ARGUMENTS resource Pointer to VME location monitor resource. monitor Offset to which callback should be removed. DESCRIPTION Remove the callback associated with ...
vme_lm_free(9)
NAME vme_lm_free - Free allocated VME location monitor SYNOPSIS void vme_lm_free (struct vme_resource *resource ); ARGUMENTS resource Pointer to VME location monitor resource. DESCRIPTION Free allocation of a VME location monitor. WARNING: This function currently expects that any callbacks that have been attache...
vme_lm_get(9)
NAME vme_lm_get - Retrieve location monitor settings SYNOPSIS int vme_lm_get (struct vme_resource *resource , unsigned long long *lm_base , u32 *aspace , u32 *cycle ); ARGUMENTS resource Pointer to VME location monitor resource. lm_base Pointer used to output the base address monitored. aspace ...
vme_lm_request(9)
NAME vme_lm_request - Request a VME location monitor SYNOPSIS struct vme_resource * vme_lm_request (struct vme_dev *vdev ); ARGUMENTS vdev Pointer to VME device struct vme_dev assigned to driver instance. DESCRIPTION Allocate a location monitor resource to the driver. A location monitor allows the driver to m...
vme_lm_set(9)
NAME vme_lm_set - Configure location monitor SYNOPSIS int vme_lm_set (struct vme_resource *resource , unsigned long long lm_base , u32 aspace , u32 cycle ); ARGUMENTS resource Pointer to VME location monitor resource. lm_base Base address to monitor. aspace VME address space to monitor. ...
vme_master_free(9)
NAME vme_master_free - Free VME master window SYNOPSIS void vme_master_free (struct vme_resource *resource ); ARGUMENTS resource Pointer to VME master resource. DESCRIPTION Free the provided master resource so that it may be reallocated. SEE ALSO Kernel file ./drivers/staging/vme_user/vme.c vme_alloc_consisten...
vme_master_get(9)
NAME vme_master_get - Retrieve VME master window configuration. SYNOPSIS int vme_master_get (struct vme_resource *resource , int *enabled , unsigned long long *vme_base , unsigned long long *size , u32 *aspace , u32 *cycle , u32 *dwidth ); ARGUMENTS resource Pointer to VME master resource. enabled Poin...
vme_master_mmap(9)
NAME vme_master_mmap - Mmap region of VME master window. SYNOPSIS int vme_master_mmap (struct vme_resource *resource , struct vm_area_struct *vma ); ARGUMENTS resource Pointer to VME master resource. vma Pointer to definition of user mapping. DESCRIPTION Memory map a region of the VME master windo...
vme_master_read(9)
NAME vme_master_read - Read data from VME space into a buffer. SYNOPSIS ssize_t vme_master_read (struct vme_resource *resource , void *buf , size_t count , loff_t offset ); ARGUMENTS resource Pointer to VME master resource. buf Pointer to buffer where data should be transferred. count ...
vme_master_request(9)
NAME vme_master_request - Request a VME master window resource. SYNOPSIS struct vme_resource * vme_master_request (struct vme_dev *vdev , u32 address , u32 cycle , u32 dwidth ); ARGUMENTS vdev Pointer to VME device struct vme_dev assigned to driver instance. address Required VME address space. ...
vme_master_rmw(9)
NAME vme_master_rmw - Perform read-modify-write cycle. SYNOPSIS unsigned int vme_master_rmw (struct vme_resource *resource , unsigned int mask , unsigned int compare , unsigned int swap , loff_t offset ); ARGUMENTS resource Pointer to VME master resource. mask Bits to be compared and swapped in oper...
vme_master_set(9)
NAME vme_master_set - Set VME master window configuration. SYNOPSIS int vme_master_set (struct vme_resource *resource , int enabled , unsigned long long vme_base , unsigned long long size , u32 aspace , u32 cycle , u32 dwidth ); ARGUMENTS resource Pointer to VME master resource. enabled State to which ...
vme_master_write(9)
NAME vme_master_write - Write data out to VME space from a buffer. SYNOPSIS ssize_t vme_master_write (struct vme_resource *resource , void *buf , size_t count , loff_t offset ); ARGUMENTS resource Pointer to VME master resource. buf Pointer to buffer holding data to transfer. count Nu...
vme_new_dma_list(9)
NAME vme_new_dma_list - Create new VME DMA list. SYNOPSIS struct vme_dma_list * vme_new_dma_list (struct vme_resource *resource ); ARGUMENTS resource Pointer to VME DMA resource. DESCRIPTION Create a new VME DMA list. It is the responsibility of the user to free the list once it is no longer required with vme_dma...
vme_register_driver(9)
NAME vme_register_driver - Register a VME driver SYNOPSIS int vme_register_driver (struct vme_driver *drv , unsigned int ndevs ); ARGUMENTS drv Pointer to VME driver structure to register. ndevs Maximum number of devices to allow to be enumerated. DESCRIPTION Register a VME device driver with t...
vme_slave_free(9)
NAME vme_slave_free - Free VME slave window SYNOPSIS void vme_slave_free (struct vme_resource *resource ); ARGUMENTS resource Pointer to VME slave resource. DESCRIPTION Free the provided slave resource so that it may be reallocated. SEE ALSO Kernel file ./drivers/staging/vme_user/vme.c vme_alloc_consistent(9),...
vme_slave_get(9)
NAME vme_slave_get - Retrieve VME slave window configuration. SYNOPSIS int vme_slave_get (struct vme_resource *resource , int *enabled , unsigned long long *vme_base , unsigned long long *size , dma_addr_t *buf_base , u32 *aspace , u32 *cycle ); ARGUMENTS resource Pointer to VME slave resource. enabled ...
vme_slave_request(9)
NAME vme_slave_request - Request a VME slave window resource. SYNOPSIS struct vme_resource * vme_slave_request (struct vme_dev *vdev , u32 address , u32 cycle ); ARGUMENTS vdev Pointer to VME device struct vme_dev assigned to driver instance. address Required VME address space. cycle ...
vme_slave_set(9)
NAME vme_slave_set - Set VME slave window configuration. SYNOPSIS int vme_slave_set (struct vme_resource *resource , int enabled , unsigned long long vme_base , unsigned long long size , dma_addr_t buf_base , u32 aspace , u32 cycle ); ARGUMENTS resource Pointer to VME slave resource. enabled State to w...
vme_slot_num(9)
NAME vme_slot_num - Retrieve slot ID SYNOPSIS int vme_slot_num (struct vme_dev *vdev ); ARGUMENTS vdev Pointer to VME device struct vme_dev assigned to driver instance. DESCRIPTION Retrieve the slot ID associated with the provided VME device. RETURN The slot ID on success, -EINVAL if VME bridge cannot be det...