id stringlengths 4 63 | text stringlengths 153 8.81M |
|---|---|
ttm_pool_free(9) | NAME ttm_pool_free - Free the backing pages from a ttm_tt object
SYNOPSIS void ttm_pool_free (struct ttm_pool *pool , struct ttm_tt *tt );
ARGUMENTS pool Pool to give pages back to.
tt ttm_tt object to unpopulate
DESCRIPTION Give the packing pages back to a pool or free them
SEE ALSO Kernel ... |
ttm_pool_free_range(9) | NAME ttm_pool_free_range - Free a range of TTM pages
SYNOPSIS void ttm_pool_free_range (struct ttm_pool *pool , struct ttm_tt *tt , enum ttm_caching caching , pgoff_t start_page , pgoff_t end_page );
ARGUMENTS pool The pool used for allocating.
tt The struct ttm_tt holding the page pointers.
... |
ttm_pool_init(9) | NAME ttm_pool_init - Initialize a pool
SYNOPSIS void ttm_pool_init (struct ttm_pool *pool , struct device *dev , int nid , unsigned int alloc_flags );
ARGUMENTS pool the pool to initialize
dev device for DMA allocations and mappings
nid NUMA node to use for allocations
a... |
ttm_pool_mgr_fini(9) | NAME ttm_pool_mgr_fini - Finalize globals
SYNOPSIS void ttm_pool_mgr_fini (void );
ARGUMENTS void no arguments
DESCRIPTION Cleanup the global pools and unregister the MM shrinker.
SEE ALSO Kernel file ./drivers/gpu/drm/ttm/ttm_pool.c struct ttm_pool_dma(9), struct ttm_pool_alloc_state(9), struct ttm_pool_tt... |
ttm_pool_mgr_init(9) | NAME ttm_pool_mgr_init - Initialize globals
SYNOPSIS int ttm_pool_mgr_init (unsigned long num_pages );
ARGUMENTS num_pages default number of pages
DESCRIPTION Initialize the global locks and lists for the MM shrinker.
SEE ALSO Kernel file ./drivers/gpu/drm/ttm/ttm_pool.c struct ttm_pool_dma(9), struct ttm_pool_a... |
ttm_pool_restore_and_alloc(9) | NAME ttm_pool_restore_and_alloc - Fill a ttm_tt, restoring previously backed-up content.
SYNOPSIS int ttm_pool_restore_and_alloc (struct ttm_pool *pool , struct ttm_tt *tt , const struct ttm_operation_ctx *ctx );
ARGUMENTS pool ttm_pool to use
tt ttm_tt object to fill
ctx opera... |
ttm_pool_synchronize_shrinkers(9) | NAME ttm_pool_synchronize_shrinkers - Wait for all running shrinkers to complete.
SYNOPSIS void ttm_pool_synchronize_shrinkers (void );
ARGUMENTS void no arguments
DESCRIPTION This is useful to guarantee that all shrinker invocations have seen an update, before freeing memory, similar to rcu.
SEE ALSO Kernel... |
ttm_prime_dmabuf_release(9) | NAME ttm_prime_dmabuf_release - Release method for the dma-bufs we export
SYNOPSIS void ttm_prime_dmabuf_release (struct dma_buf *dma_buf );
ARGUMENTS dma_buf
DESCRIPTION This function first calls the dma_buf release method the driver provides. Then it cleans up our dma_buf pointer used for lookup, and finally relea... |
ttm_prime_fd_to_handle(9) | NAME ttm_prime_fd_to_handle - Get a base object handle from a prime fd
SYNOPSIS int ttm_prime_fd_to_handle (struct ttm_object_file *tfile , int fd , u32 *handle );
ARGUMENTS tfile A struct ttm_object_file identifying the caller.
fd The prime / dmabuf fd.
handle The returned handle.... |
ttm_prime_handle_to_fd(9) | NAME ttm_prime_handle_to_fd - Return a dma_buf fd from a ttm prime object
SYNOPSIS int ttm_prime_handle_to_fd (struct ttm_object_file *tfile , uint32_t handle , uint32_t flags , int *prime_fd );
ARGUMENTS tfile Struct ttm_object_file identifying the caller.
handle Handle to the object we're exporti... |
ttm_prime_object_init(9) | NAME ttm_prime_object_init - Initialize a ttm_prime_object
SYNOPSIS int ttm_prime_object_init (struct ttm_object_file *tfile , size_t size , struct ttm_prime_object *prime , enum ttm_object_type type , void (*refcount_release) (struct ttm_base_object **) );
ARGUMENTS tfile struct ttm_object_file identifying the... |
ttm_prime_refcount_release(9) | NAME ttm_prime_refcount_release - refcount release method for a prime object.
SYNOPSIS void ttm_prime_refcount_release (struct ttm_base_object **p_base );
ARGUMENTS p_base Pointer to ttm_base_object pointer.
DESCRIPTION This is a wrapper that calls the refcount_release founction of the underlying object. A... |
ttm_prot_from_caching(9) | NAME ttm_prot_from_caching - Modify the page protection according to the ttm cacing mode
SYNOPSIS pgprot_t ttm_prot_from_caching (enum ttm_caching caching , pgprot_t tmp );
ARGUMENTS caching The ttm caching mode
tmp The original page protection
RETURN The modified page protection
SEE ALSO Kernel... |
ttm_range_man_fini_nocheck(9) | NAME ttm_range_man_fini_nocheck - Remove the generic range manager from a slot and tear it down.
SYNOPSIS int ttm_range_man_fini_nocheck (struct ttm_device *bdev , unsigned type );
ARGUMENTS bdev ttm device
type memory manager type
RETURN 0 on success or a negative error code on failure
SEE AL... |
ttm_range_man_init_nocheck(9) | NAME ttm_range_man_init_nocheck - Initialise a generic range manager for the selected memory type.
SYNOPSIS int ttm_range_man_init_nocheck (struct ttm_device *bdev , unsigned type , bool use_tt , unsigned long p_size );
ARGUMENTS bdev ttm device
type memory manager type
use_tt if th... |
ttm_ref_object_base_unref(9) | NAME ttm_ref_object_base_unref -
SYNOPSIS int ttm_ref_object_base_unref (struct ttm_object_file *tfile , unsigned long key );
ARGUMENTS tfile -- undescribed --
key Key representing the base object.
DESCRIPTION Unreference a ref object with type ref_type on the base object identified by key. If ... |
ttm_resource_compatible(9) | NAME ttm_resource_compatible - check if resource is compatible with placement
SYNOPSIS bool ttm_resource_compatible (struct ttm_resource *res , struct ttm_placement *placement , bool evicting );
ARGUMENTS res the resource to check
placement the placement to check against
evicting true if ... |
ttm_resource_cursor_fini(9) | NAME ttm_resource_cursor_fini - Finalize the LRU list cursor usage
SYNOPSIS void ttm_resource_cursor_fini (struct ttm_resource_cursor *cursor );
ARGUMENTS cursor The struct ttm_resource_cursor to finalize.
DESCRIPTION The function pulls the LRU list cursor off any lists it was previusly attached to. Needs to be... |
ttm_resource_cursor_init(9) | NAME ttm_resource_cursor_init - Initialize a struct ttm_resource_cursor
SYNOPSIS void ttm_resource_cursor_init (struct ttm_resource_cursor *cursor , struct ttm_resource_manager *man );
ARGUMENTS cursor The cursor to initialize.
man The resource manager.
DESCRIPTION Initialize the cursor before u... |
ttm_resource_fini(9) | NAME ttm_resource_fini - resource destructor
SYNOPSIS void ttm_resource_fini (struct ttm_resource_manager *man , struct ttm_resource *res );
ARGUMENTS man the resource manager this resource belongs to
res the resource to clean up
DESCRIPTION Should be used by resource manager backends ... |
ttm_resource_init(9) | NAME ttm_resource_init - resource object constructure
SYNOPSIS void ttm_resource_init (struct ttm_buffer_object *bo , const struct ttm_place *place , struct ttm_resource *res );
ARGUMENTS bo buffer object this resources is allocated for
place placement of the resource
res the re... |
ttm_resource_intersects(9) | NAME ttm_resource_intersects - test for intersection
SYNOPSIS bool ttm_resource_intersects (struct ttm_device *bdev , struct ttm_resource *res , const struct ttm_place *place , size_t size );
ARGUMENTS bdev TTM device structure
res The resource to test
place The placement to test
... |
ttm_resource_manager_cleanup(9) | NAME ttm_resource_manager_cleanup -
SYNOPSIS void ttm_resource_manager_cleanup (struct ttm_resource_manager *man );
ARGUMENTS man A memory manager object.
DESCRIPTION Cleanup the move fences from the memory manager object.
SEE ALSO Kernel file ./include/drm/ttm/ttm_resource.h TTM_NUM_MOVE_FENCES(9), enu... |
ttm_resource_manager_create_debugfs(9) | NAME ttm_resource_manager_create_debugfs - Create debugfs entry for specified resource manager.
SYNOPSIS void ttm_resource_manager_create_debugfs (struct ttm_resource_manager *man , struct dentry * parent , const char *name );
ARGUMENTS man The TTM resource manager for which the debugfs stats file be creates
... |
ttm_resource_manager_debug(9) | NAME ttm_resource_manager_debug -
SYNOPSIS void ttm_resource_manager_debug (struct ttm_resource_manager *man , struct drm_printer *p );
ARGUMENTS man manager type to dump.
p printer to use for debug.
SEE ALSO Kernel file ./drivers/gpu/drm/ttm/ttm_resource.c ttm_resource_cursor_init(9), ... |
ttm_resource_manager_first(9) | NAME ttm_resource_manager_first - Start iterating over the resources of a resource manager
SYNOPSIS struct ttm_resource * ttm_resource_manager_first (struct ttm_resource_cursor *cursor );
ARGUMENTS cursor cursor to record the position
DESCRIPTION Initializes the cursor and starts iterating. When done iterating,... |
ttm_resource_manager_for_each_res(9) | NAME ttm_resource_manager_for_each_res - iterate over all resources
SYNOPSIS ttm_resource_manager_for_each_res (cursor , res );
ARGUMENTS cursor struct ttm_resource_cursor for the current position
res the current resource
DESCRIPTION Iterate over all the evictable resources in a resource manager... |
ttm_resource_manager_init(9) | NAME ttm_resource_manager_init -
SYNOPSIS void ttm_resource_manager_init (struct ttm_resource_manager *man , struct ttm_device *bdev , uint64_t size );
ARGUMENTS man memory manager object to init
bdev ttm device this manager belongs to
size size of managed resources in arbitrary ... |
ttm_resource_manager_next(9) | NAME ttm_resource_manager_next - Continue iterating over the resource manager resources
SYNOPSIS struct ttm_resource * ttm_resource_manager_next (struct ttm_resource_cursor *cursor );
ARGUMENTS cursor cursor to record the position
RETURN the next resource from the resource manager.
SEE ALSO Kernel file ./dri... |
ttm_resource_manager_set_used(9) | NAME ttm_resource_manager_set_used -
SYNOPSIS void ttm_resource_manager_set_used (struct ttm_resource_manager *man , bool used );
ARGUMENTS man A memory manager object.
used usage state to set.
DESCRIPTION Set the manager in use flag. If disabled the manager is no longer used for object placem... |
ttm_resource_manager_usage(9) | NAME ttm_resource_manager_usage -
SYNOPSIS uint64_t ttm_resource_manager_usage (struct ttm_resource_manager *man );
ARGUMENTS man A memory manager object.
DESCRIPTION Return how many resources are currently used.
SEE ALSO Kernel file ./drivers/gpu/drm/ttm/ttm_resource.c ttm_resource_cursor_init(9), ttm_... |
ttm_resource_manager_used(9) | NAME ttm_resource_manager_used -
SYNOPSIS bool ttm_resource_manager_used (struct ttm_resource_manager *man );
ARGUMENTS man Manager to get used state for
DESCRIPTION Get the in use flag for a manager.
RETURN true is used, false if not.
SEE ALSO Kernel file ./include/drm/ttm/ttm_resource.h TTM_NUM_MOVE_F... |
ttm_tt_backup(9) | NAME ttm_tt_backup - Helper to back up a struct ttm_tt.
SYNOPSIS long ttm_tt_backup (struct ttm_device *bdev , struct ttm_tt *tt , const struct ttm_backup_flags flags );
ARGUMENTS bdev The TTM device.
tt The struct ttm_tt.
flags Flags that govern the backup behaviour.
DESCRIPTIO... |
ttm_tt_clear_backed_up(9) | NAME ttm_tt_clear_backed_up - Clear the ttm_tt backed-up status
SYNOPSIS void ttm_tt_clear_backed_up (struct ttm_tt *tt );
ARGUMENTS tt The struct ttm_tt.
DESCRIPTION Drivers can use this functionto clear the backed-up status, for example before destroying or re-validating a purged tt.
SEE ALSO Kernel fil... |
ttm_tt_create(9) | NAME ttm_tt_create -
SYNOPSIS int ttm_tt_create (struct ttm_buffer_object *bo , bool zero_alloc );
ARGUMENTS bo pointer to a struct ttm_buffer_object
zero_alloc true if allocated pages needs to be zeroed
DESCRIPTION Make sure we have a TTM structure allocated for the given BO. No pages are actuall... |
ttm_tt_destroy(9) | NAME ttm_tt_destroy -
SYNOPSIS void ttm_tt_destroy (struct ttm_device *bdev , struct ttm_tt *ttm );
ARGUMENTS bdev the ttm_device this object belongs to
ttm The struct ttm_tt.
DESCRIPTION Unbind, unpopulate and destroy common struct ttm_tt.
SEE ALSO Kernel file ./include/drm/ttm/ttm_tt.h ... |
ttm_tt_fini(9) | NAME ttm_tt_fini -
SYNOPSIS void ttm_tt_fini (struct ttm_tt *ttm );
ARGUMENTS ttm the ttm_tt structure.
DESCRIPTION Free memory of ttm_tt structure
SEE ALSO Kernel file ./include/drm/ttm/ttm_tt.h struct ttm_tt(9), struct ttm_kmap_iter_tt(9), ttm_tt_is_swapped(9), ttm_tt_is_backed_up(9), ttm_tt_clear... |
ttm_tt_init(9) | NAME ttm_tt_init -
SYNOPSIS int ttm_tt_init (struct ttm_tt *ttm , struct ttm_buffer_object *bo , uint32_t page_flags , enum ttm_caching caching , unsigned long extra_pages );
ARGUMENTS ttm The struct ttm_tt.
bo The buffer object we create the ttm for.
page_flags Page flags as identif... |
ttm_tt_is_backed_up(9) | NAME ttm_tt_is_backed_up - Whether the ttm_tt backed up
SYNOPSIS bool ttm_tt_is_backed_up (const struct ttm_tt *tt );
ARGUMENTS tt The struct ttm_tt.
RETURN true if swapped or backed up, false otherwise.
SEE ALSO Kernel file ./include/drm/ttm/ttm_tt.h struct ttm_tt(9), struct ttm_kmap_iter_tt(9), ttm_tt_i... |
ttm_tt_is_swapped(9) | NAME ttm_tt_is_swapped - Whether the ttm_tt is swapped out or backed up
SYNOPSIS bool ttm_tt_is_swapped (const struct ttm_tt *tt );
ARGUMENTS tt The struct ttm_tt.
RETURN true if swapped or backed up, false otherwise.
SEE ALSO Kernel file ./include/drm/ttm/ttm_tt.h struct ttm_tt(9), struct ttm_k... |
ttm_tt_mark_for_clear(9) | NAME ttm_tt_mark_for_clear - Mark pages for clearing on populate.
SYNOPSIS void ttm_tt_mark_for_clear (struct ttm_tt *ttm );
ARGUMENTS ttm Pointer to the ttm_tt structure
DESCRIPTION Marks pages for clearing so that the next time the page vector is populated, the pages will be cleared.
SEE ALSO Kernel file... |
ttm_tt_populate(9) | NAME ttm_tt_populate - allocate pages for a ttm
SYNOPSIS int ttm_tt_populate (struct ttm_device *bdev , struct ttm_tt *ttm , struct ttm_operation_ctx *ctx );
ARGUMENTS bdev the ttm_device this object belongs to
ttm Pointer to the ttm_tt structure
ctx operation context for popula... |
ttm_tt_setup_backup(9) | NAME ttm_tt_setup_backup - Allocate and assign a backup structure for a ttm_tt
SYNOPSIS int ttm_tt_setup_backup (struct ttm_tt *tt );
ARGUMENTS tt The ttm_tt for wich to allocate and assign a backup structure.
DESCRIPTION Assign a backup structure to be used for tt backup. This should typically be done at b... |
ttm_tt_swapin(9) | NAME ttm_tt_swapin -
SYNOPSIS int ttm_tt_swapin (struct ttm_tt *ttm );
ARGUMENTS ttm The struct ttm_tt.
DESCRIPTION Swap in a previously swap out ttm_tt.
SEE ALSO Kernel file ./include/drm/ttm/ttm_tt.h struct ttm_tt(9), struct ttm_kmap_iter_tt(9), ttm_tt_is_swapped(9), ttm_tt_is_backed_up(9), ttm_tt_clea... |
ttm_tt_swapout(9) | NAME ttm_tt_swapout - swap out tt object
SYNOPSIS int ttm_tt_swapout (struct ttm_device *bdev , struct ttm_tt *ttm , gfp_t gfp_flags );
ARGUMENTS bdev TTM device structure.
ttm The struct ttm_tt.
gfp_flags Flags to use for memory allocation.
DESCRIPTION Swapout a TT object to a shmem... |
ttm_tt_unpopulate(9) | NAME ttm_tt_unpopulate - free pages from a ttm
SYNOPSIS void ttm_tt_unpopulate (struct ttm_device *bdev , struct ttm_tt *ttm );
ARGUMENTS bdev the ttm_device this object belongs to
ttm Pointer to the ttm_tt structure
DESCRIPTION Calls the driver method to free all pages from a ttm
SEE ALSO Ke... |
tty(1) | NAME tty - print the file name of the terminal connected to standard input
SYNOPSIS tty [OPTION]...
DESCRIPTION Print the file name of the terminal connected to standard input.
-s, --silent, --quiet
print nothing, only return an exit status
--help display this help and exit
--ver... |
tty(1p) | 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 tty — return user's terminal name
SYNOPSIS tty
DESCRIPTI... |
tty(4) | NAME tty - controlling terminal
DESCRIPTION The file /dev/tty is a character file with major number 5 and minor number 0, usually with mode 0666 and ownership root:tty. It is a synonym for the controlling terminal of a process, if any.
In addition to the ioctl(2) requests supported by the device that tty refe... |
ttyS(4) | NAME ttyS - serial terminal lines
DESCRIPTION ttyS[0-3] are character devices for the serial terminal lines.
They are typically created by:
mknod -m 660 /dev/ttyS0 c 4 64 # base address 0x3f8
mknod -m 660 /dev/ttyS1 c 4 65 # base address 0x2f8
mknod -m 660 /dev/ttyS2 c 4 66 # ... |
tty_alloc_driver(9) | NAME tty_alloc_driver - allocate tty driver
SYNOPSIS tty_alloc_driver (lines , flags );
ARGUMENTS lines count of lines this driver can handle at most
flags some of enum tty_driver_flag, will be set in driver->flags
RETURN struct tty_driver or a PTR-encoded error (use IS_ERR and friends).
SEE ALS... |
tty_audit_exit(9) | NAME tty_audit_exit - Handle a task exit
SYNOPSIS void tty_audit_exit (void );
ARGUMENTS void no arguments
DESCRIPTION Make sure all buffered data is written out and deallocate the buffer. Only needs to be called if current->signal->tty_audit_buf != NULL. The process is single-threaded at this point; no oth... |
tty_buffer_alloc(9) | NAME tty_buffer_alloc - allocate a tty buffer
SYNOPSIS struct tty_buffer * tty_buffer_alloc (struct tty_port *port , size_t size );
ARGUMENTS port tty port
size desired size (characters)
DESCRIPTION Allocate a new tty buffer to hold the desired number of characters. We round our buffers off in ... |
tty_buffer_flush(9) | NAME tty_buffer_flush - flush full tty buffers
SYNOPSIS void tty_buffer_flush (struct tty_struct *tty , struct tty_ldisc *ld );
ARGUMENTS tty tty to flush
ld optional ldisc ptr (must be referenced)
DESCRIPTION Flush all the buffers containing receive data. If ld != NULL, flush the ldisc inpu... |
tty_buffer_free(9) | NAME tty_buffer_free - free a tty buffer
SYNOPSIS void tty_buffer_free (struct tty_port *port , struct tty_buffer *b );
ARGUMENTS port tty port owning the buffer
b the buffer to free
DESCRIPTION Free a tty buffer, or add it to the free list according to our internal strategy.
SEE ALSO Kerne... |
tty_buffer_free_all(9) | NAME tty_buffer_free_all - free buffers used by a tty
SYNOPSIS void tty_buffer_free_all (struct tty_port *port );
ARGUMENTS port tty port to free from
DESCRIPTION Remove all the buffers pending on a tty whether queued with data or in the free ring. Must be called when the tty is no longer in use.
SEE ALSO Ke... |
tty_buffer_init(9) | NAME tty_buffer_init - prepare a tty buffer structure
SYNOPSIS void tty_buffer_init (struct tty_port *port );
ARGUMENTS port tty port to initialise
DESCRIPTION Set up the initial state of the buffer management for a tty device. Must be called before the other tty buffer functions are used.
SEE ALSO Kernel f... |
tty_buffer_lock_exclusive(9) | NAME tty_buffer_lock_exclusive - gain exclusive access to buffer
SYNOPSIS void tty_buffer_lock_exclusive (struct tty_port *port );
ARGUMENTS port tty port owning the flip buffer
DESCRIPTION Guarantees safe use of the tty_ldisc_ops.receive_buf method by excluding the buffer work and any pending flush from... |
tty_buffer_set_limit(9) | NAME tty_buffer_set_limit - change the tty buffer memory limit
SYNOPSIS int tty_buffer_set_limit (struct tty_port *port , int limit );
ARGUMENTS port tty port to change
limit memory limit to set
DESCRIPTION Change the tty buffer memory limit. Must be called before the other tty buffer functions... |
tty_buffer_space_avail(9) | NAME tty_buffer_space_avail - return unused buffer space
SYNOPSIS unsigned int tty_buffer_space_avail (struct tty_port *port );
ARGUMENTS port tty port owning the flip buffer
RETURN the # of bytes which can be written by the driver without reaching the buffer limit.
NOTE this does not guarantee that memory i... |
tty_buffer_unlock_exclusive(9) | NAME tty_buffer_unlock_exclusive - release exclusive access
SYNOPSIS void tty_buffer_unlock_exclusive (struct tty_port *port );
ARGUMENTS port tty port owning the flip buffer
DESCRIPTION The buffer work is restarted if there is data in the flip buffer. See also tty_buffer_lock_exclusive.
SEE ALSO Kernel fi... |
tty_change_softcar(9) | NAME tty_change_softcar - carrier change ioctl helper
SYNOPSIS int tty_change_softcar (struct tty_struct *tty , bool enable );
ARGUMENTS tty tty to update
enable enable/disable CLOCAL
DESCRIPTION Perform a change to the CLOCAL state and call into the driver layer to make it visible. Locking: tt... |
tty_chars_in_buffer(9) | NAME tty_chars_in_buffer - characters pending
SYNOPSIS unsigned int tty_chars_in_buffer (struct tty_struct *tty );
ARGUMENTS tty terminal
RETURN the number of bytes of data in the device private output queue. If no private method is supplied there is assumed to be no queue on the device.
SEE ALSO Kernel ... |
tty_dev_name_to_number(9) | NAME tty_dev_name_to_number - return dev_t for device name
SYNOPSIS int tty_dev_name_to_number (const char *name , dev_t *number );
ARGUMENTS name user space name of device under /dev
number pointer to dev_t that this function will populate
DESCRIPTION This function converts device names like t... |
tty_do_resize(9) | NAME tty_do_resize - resize event
SYNOPSIS int tty_do_resize (struct tty_struct *tty , struct winsize *ws );
ARGUMENTS tty tty being resized
ws new dimensions
DESCRIPTION Update the termios variables and send the necessary signals to peform a terminal resize correctly.
SEE ALSO Kernel file... |
tty_driver_flush_buffer(9) | NAME tty_driver_flush_buffer - discard internal buffer
SYNOPSIS void tty_driver_flush_buffer (struct tty_struct *tty );
ARGUMENTS tty terminal
DESCRIPTION Discard the internal output buffer for this device. If no method is provided, then either the buffer cannot be hardware flushed or there is no buffer driv... |
tty_driver_install_tty(9) | NAME tty_driver_install_tty - install a tty entry in the driver
SYNOPSIS int tty_driver_install_tty (struct tty_driver *driver , struct tty_struct *tty );
ARGUMENTS driver the driver for the tty
tty the tty
DESCRIPTION Install a tty object into the driver tables. The tty->index field will b... |
tty_driver_kref_put(9) | NAME tty_driver_kref_put - drop a reference to a tty driver
SYNOPSIS void tty_driver_kref_put (struct tty_driver *driver );
ARGUMENTS driver driver of which to drop the reference
DESCRIPTION The final put will destroy and free up the driver.
SEE ALSO Kernel file ./drivers/tty/tty_io.c free_tty_struct(9), t... |
tty_driver_lookup_tty(9) | NAME tty_driver_lookup_tty - find an existing tty, if any
SYNOPSIS struct tty_struct * tty_driver_lookup_tty (struct tty_driver *driver , struct file *file , int idx );
ARGUMENTS driver the driver for the tty
file file object
idx the minor number
RETURN the tty, if found. If not f... |
tty_driver_remove_tty(9) | NAME tty_driver_remove_tty - remove a tty from the driver tables
SYNOPSIS void tty_driver_remove_tty (struct tty_driver *driver , struct tty_struct *tty );
ARGUMENTS driver the driver for the tty
tty tty to remove
DESCRIPTION Remove a tty object from the driver tables. The tty->index field will ... |
tty_encode_baud_rate(9) | NAME tty_encode_baud_rate - set baud rate of the tty
SYNOPSIS void tty_encode_baud_rate (struct tty_struct *tty , speed_t ibaud , speed_t obaud );
ARGUMENTS tty terminal device
ibaud input baud rate
obaud output baud rate
DESCRIPTION Update the current termios data for the tty wit... |
tty_find_polling_driver(9) | NAME tty_find_polling_driver - find device of a polled tty
SYNOPSIS struct tty_driver * tty_find_polling_driver (char *name , int *line );
ARGUMENTS name name string to match
line pointer to resulting tty line nr
DESCRIPTION This routine returns a tty driver structure, given a name and the cond... |
tty_flip_buffer_push(9) | NAME tty_flip_buffer_push - push terminal buffers
SYNOPSIS void tty_flip_buffer_push (struct tty_port *port );
ARGUMENTS port tty port to push
DESCRIPTION Queue a push of the terminal flip buffers to the line discipline. Can be called from IRQ/atomic context. In the event of the queue being busy for flipping... |
tty_flush_works(9) | NAME tty_flush_works - flush all works of a tty/pty pair
SYNOPSIS void tty_flush_works (struct tty_struct *tty );
ARGUMENTS tty tty device to flush works for (or either end of a pty pair)
DESCRIPTION Sync flush all works belonging to tty (and the 'other' tty).
SEE ALSO Kernel file ./drivers/tty/tty_io.c ... |
tty_free_file(9) | NAME tty_free_file - free file->private_data
SYNOPSIS void tty_free_file (struct file *file );
ARGUMENTS file to free private_data of
DESCRIPTION This shall be used only for fail path handling when tty_add_file was not called yet.
SEE ALSO Kernel file ./drivers/tty/tty_io.c free_tty_struct(9), tty_name(9... |
tty_get_baud_rate(9) | NAME tty_get_baud_rate - get tty bit rates
SYNOPSIS speed_t tty_get_baud_rate (const struct tty_struct *tty );
ARGUMENTS tty tty to query
RETURN the baud rate as an integer for this terminal
DESCRIPTION Locking: The termios lock must be held by the caller.
SEE ALSO Kernel file ./include/linux/tty.h struct ... |
tty_get_char_size(9) | NAME tty_get_char_size - get size of a character
SYNOPSIS unsigned char tty_get_char_size (unsigned int cflag );
ARGUMENTS cflag termios cflag value
RETURN size (in bits) of a character depending on cflag's CSIZE setting
SEE ALSO Kernel file ./drivers/tty/tty_ioctl.c tty_chars_in_buffer(9), tty_write_room(9),... |
tty_get_frame_size(9) | NAME tty_get_frame_size - get size of a frame
SYNOPSIS unsigned char tty_get_frame_size (unsigned int cflag );
ARGUMENTS cflag termios cflag value
DESCRIPTION Get the size (in bits) of a frame depending on cflag's CSIZE, CSTOPB, and PARENB setting. The result is a sum of character size, start and stop bits -- ... |
tty_get_icount(9) | NAME tty_get_icount - get tty statistics
SYNOPSIS int tty_get_icount (struct tty_struct *tty , struct serial_icounter_struct *icount );
ARGUMENTS tty tty device
icount output parameter
DESCRIPTION Gets a copy of the tty's icount statistics. Locking: none (up to the driver)
SEE ALSO Kernel fil... |
tty_get_pgrp(9) | NAME tty_get_pgrp - return a ref counted pgrp pid
SYNOPSIS struct pid * tty_get_pgrp (struct tty_struct *tty );
ARGUMENTS tty tty to read
DESCRIPTION Returns a refcounted instance of the pid struct for the process group controlling the tty.
SEE ALSO Kernel file ./drivers/tty/tty_jobctrl.c __tty_check_change... |
tty_get_tiocm(9) | NAME tty_get_tiocm - get tiocm status register
SYNOPSIS int tty_get_tiocm (struct tty_struct *tty );
ARGUMENTS tty tty device
DESCRIPTION Obtain the modem status bits from the tty driver if the feature is supported.
SEE ALSO Kernel file ./drivers/tty/tty_io.c free_tty_struct(9), tty_free_file(9), tty_n... |
tty_hangup(9) | NAME tty_hangup - trigger a hangup event
SYNOPSIS void tty_hangup (struct tty_struct *tty );
ARGUMENTS tty tty to hangup
DESCRIPTION A carrier loss (virtual or otherwise) has occurred on tty. Schedule a hangup sequence to run after this event.
SEE ALSO Kernel file ./drivers/tty/tty_io.c free_tty_struct(9... |
tty_hung_up_p(9) | NAME tty_hung_up_p - was tty hung up
SYNOPSIS int tty_hung_up_p (struct file *filp );
ARGUMENTS filp file pointer of tty
RETURN true if the tty has been subject to a vhangup or a carrier loss
SEE ALSO Kernel file ./drivers/tty/tty_io.c free_tty_struct(9), tty_free_file(9), tty_name(9), get_tty_driver(9)... |
tty_init_dev(9) | NAME tty_init_dev - initialise a tty device
SYNOPSIS struct tty_struct * tty_init_dev (struct tty_driver *driver , int idx );
ARGUMENTS driver tty driver we are opening a device on
idx device index
DESCRIPTION Prepare a tty device. This may not be a "new" clean device but could also be an active... |
tty_init_termios(9) | NAME tty_init_termios - helper for termios setup
SYNOPSIS void tty_init_termios (struct tty_struct *tty );
ARGUMENTS tty the tty to set up
DESCRIPTION Initialise the termios structure for this tty. This runs under the tty_mutex currently so we can be relaxed about ordering.
SEE ALSO Kernel file ./drivers/... |
tty_insert_flip_char(9) | NAME tty_insert_flip_char - add one character to the tty buffer
SYNOPSIS size_t tty_insert_flip_char (struct tty_port *port , u8 ch , u8 flag );
ARGUMENTS port tty port
ch character
flag flag byte
DESCRIPTION Queue a single byte ch to the tty buffering, with an optional flag.
... |
tty_insert_flip_string_and_push_buffer(9) | NAME tty_insert_flip_string_and_push_buffer - add characters to the tty buffer and push
SYNOPSIS int tty_insert_flip_string_and_push_buffer (struct tty_port *port , const u8 *chars , size_t size );
ARGUMENTS port tty port
chars characters
size size
DESCRIPTION The function combine... |
tty_insert_flip_string_fixed_flag(9) | NAME tty_insert_flip_string_fixed_flag - add characters to the tty buffer
SYNOPSIS size_t tty_insert_flip_string_fixed_flag (struct tty_port *port , const u8 *chars , u8 flag , size_t size );
ARGUMENTS port tty port
chars characters
flag flag value for each character
size ... |
tty_insert_flip_string_flags(9) | NAME tty_insert_flip_string_flags - add characters to the tty buffer
SYNOPSIS size_t tty_insert_flip_string_flags (struct tty_port *port , const u8 *chars , const u8 *flags , size_t size );
ARGUMENTS port tty port
chars characters
flags flag bytes
size size
DESCRIPTI... |
tty_ioctl(4) | NAME ioctl_tty - ioctls for terminals and serial lines
LIBRARY Standard C library (libc, -lc)
SYNOPSIS #include <asm/termbits.h> /* Definition of constants */ #include <sys/ioctl.h>
int ioctl(int fd, int op, ...);
DESCRIPTION The ioctl(2) call for terminals and serial ports accepts many possible operation a... |
tty_kclose(9) | NAME tty_kclose - closes tty opened by tty_kopen
SYNOPSIS void tty_kclose (struct tty_struct *tty );
ARGUMENTS tty tty device
DESCRIPTION Performs the final steps to release and free a tty device. It is the same as tty_release_struct except that it also resets TTY_PORT_KOPENED flag on tty->port.
SEE ALSO Ke... |
tty_kopen_exclusive(9) | NAME tty_kopen_exclusive - open a tty device for kernel
SYNOPSIS struct tty_struct * tty_kopen_exclusive (dev_t device );
ARGUMENTS device dev_t of device to open
DESCRIPTION Opens tty exclusively for kernel. Performs the driver lookup, makes sure it's not already opened and performs the first-time tty initial... |
tty_kopen_shared(9) | NAME tty_kopen_shared - open a tty device for shared in-kernel use
SYNOPSIS struct tty_struct * tty_kopen_shared (dev_t device );
ARGUMENTS device dev_t of device to open
DESCRIPTION Opens an already existing tty for in-kernel use. Compared to tty_kopen_exclusive above it doesn't ensure to be the only user. Lo... |
tty_kref_get(9) | NAME tty_kref_get - get a tty reference
SYNOPSIS struct tty_struct * tty_kref_get (struct tty_struct *tty );
ARGUMENTS tty tty device
RETURN a new reference to a tty object
DESCRIPTION Locking: The caller must hold sufficient locks/counts to ensure that their existing reference cannot go away.
SEE ALSO Ker... |
tty_kref_put(9) | NAME tty_kref_put - release a tty kref
SYNOPSIS void tty_kref_put (struct tty_struct *tty );
ARGUMENTS tty tty device
DESCRIPTION Release a reference to the tty device and if need be let the kref layer destruct the object for us.
SEE ALSO Kernel file ./drivers/tty/tty_io.c free_tty_struct(9), tty_free_f... |
tty_ldisc_close(9) | NAME tty_ldisc_close - close a line discipline
SYNOPSIS void tty_ldisc_close (struct tty_struct *tty , struct tty_ldisc *ld );
ARGUMENTS tty tty we are opening the ldisc on
ld discipline to close
DESCRIPTION A helper close method. Also a convenient debugging and check point.
SEE ALSO Kernel... |
tty_ldisc_deinit(9) | NAME tty_ldisc_deinit - ldisc cleanup for new tty
SYNOPSIS void tty_ldisc_deinit (struct tty_struct *tty );
ARGUMENTS tty tty that was allocated recently
DESCRIPTION The tty structure must not be completely set up (tty_ldisc_setup) when this call is made.
SEE ALSO Kernel file ./drivers/tty/tty_ldisc.c ... |
tty_ldisc_deref(9) | NAME tty_ldisc_deref - free a tty ldisc reference
SYNOPSIS void tty_ldisc_deref (struct tty_ldisc *ld );
ARGUMENTS ld reference to free up
DESCRIPTION Undoes the effect of tty_ldisc_ref or tty_ldisc_ref_wait. May be called in IRQ context.
SEE ALSO Kernel file ./drivers/tty/tty_ldisc.c tty_register_ldisc... |
tty_ldisc_failto(9) | NAME tty_ldisc_failto - helper for ldisc failback
SYNOPSIS int tty_ldisc_failto (struct tty_struct *tty , int ld );
ARGUMENTS tty tty to open the ldisc on
ld ldisc we are trying to fail back to
DESCRIPTION Helper to try and recover a tty when switching back to the old ldisc fails and we need... |
tty_ldisc_flush(9) | NAME tty_ldisc_flush - flush line discipline queue
SYNOPSIS void tty_ldisc_flush (struct tty_struct *tty );
ARGUMENTS tty tty to flush ldisc for
DESCRIPTION Flush the line discipline queue (if any) and the tty flip buffers for this tty.
SEE ALSO Kernel file ./drivers/tty/tty_ldisc.c tty_register_ldisc(9)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.