id
stringlengths
4
63
text
stringlengths
153
8.81M
getutid(3)
NAME getutent, getutid, getutline, pututline, setutent, endutent, utmpname - access utmp file entries LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <utmp.h> struct utmp *getutent(void); struct utmp *getutid(const struct utmp *ut); struct utmp *getutline(const struct utmp *ut); ...
getutid_r(3)
NAME getutent, getutid, getutline, pututline, setutent, endutent, utmpname - access utmp file entries LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <utmp.h> struct utmp *getutent(void); struct utmp *getutid(const struct utmp *ut); struct utmp *getutline(const struct utmp *ut); ...
getutline(3)
NAME getutent, getutid, getutline, pututline, setutent, endutent, utmpname - access utmp file entries LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <utmp.h> struct utmp *getutent(void); struct utmp *getutid(const struct utmp *ut); struct utmp *getutline(const struct utmp *ut); ...
getutline_r(3)
NAME getutent, getutid, getutline, pututline, setutent, endutent, utmpname - access utmp file entries LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <utmp.h> struct utmp *getutent(void); struct utmp *getutid(const struct utmp *ut); struct utmp *getutline(const struct utmp *ut); ...
getutmp(3)
NAME getutmp, getutmpx - copy utmp structure to utmpx, and vice versa LIBRARY Standard C library (libc, -lc) SYNOPSIS #define _GNU_SOURCE /* See feature_test_macros(7) */ #include <utmpx.h> void getutmp(const struct utmpx *ux, struct utmp *u); void getutmpx(const struct utmp *u, struct utmp...
getutmpx(3)
NAME getutmp, getutmpx - copy utmp structure to utmpx, and vice versa LIBRARY Standard C library (libc, -lc) SYNOPSIS #define _GNU_SOURCE /* See feature_test_macros(7) */ #include <utmpx.h> void getutmp(const struct utmpx *ux, struct utmp *u); void getutmpx(const struct utmp *u, struct utmp...
getutxent(3)
NAME getutent, getutid, getutline, pututline, setutent, endutent, utmpname - access utmp file entries LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <utmp.h> struct utmp *getutent(void); struct utmp *getutid(const struct utmp *ut); struct utmp *getutline(const struct utmp *ut); ...
getutxent(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 getutxent, getutxid, getutxline — get user accounting database ...
getutxid(3)
NAME getutent, getutid, getutline, pututline, setutent, endutent, utmpname - access utmp file entries LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <utmp.h> struct utmp *getutent(void); struct utmp *getutid(const struct utmp *ut); struct utmp *getutline(const struct utmp *ut); ...
getutxline(3)
NAME getutent, getutid, getutline, pututline, setutent, endutent, utmpname - access utmp file entries LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <utmp.h> struct utmp *getutent(void); struct utmp *getutid(const struct utmp *ut); struct utmp *getutline(const struct utmp *ut); ...
getw(3)
NAME getw, putw - input and output of words (ints) LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <stdio.h> int getw(FILE *stream); int putw(int w, FILE *stream); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): getw(), putw(): Since glibc 2.3.3: ...
getwc(3)
NAME fgetwc, getwc - read a wide character from a FILE stream LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <stdio.h> #include <wchar.h> wint_t fgetwc(FILE *stream); wint_t getwc(FILE *stream); DESCRIPTION The fgetwc() function is the wide-character equivalent of the fgetc(3) function. ...
getwc(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 getwc — get a wide character from a stream SYNOPSIS #include <...
getwc_unlocked(3)
NAME getc_unlocked, getchar_unlocked, putc_unlocked, putchar_unlocked - nonlocking stdio functions LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <stdio.h> int getc_unlocked(FILE *stream); int getchar_unlocked(void); int putc_unlocked(int c, FILE *stream); int putchar_unlocked(i...
getwchar(3)
NAME getwchar - read a wide character from standard input LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <wchar.h> wint_t getwchar(void); DESCRIPTION The getwchar() function is the wide-character equivalent of the getchar(3) function. It reads a wide character from stdin and returns it. If the e...
getwchar(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 getwchar — get a wide character from a stdin stream SYNOPSIS #...
getwchar_unlocked(3)
NAME getc_unlocked, getchar_unlocked, putc_unlocked, putchar_unlocked - nonlocking stdio functions LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <stdio.h> int getc_unlocked(FILE *stream); int getchar_unlocked(void); int putc_unlocked(int c, FILE *stream); int putchar_unlocked(i...
getwd(3)
NAME getcwd, getwd, get_current_dir_name - get current working directory LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <unistd.h> char *getcwd(size_t size; char buf[size], size_t size); char *get_current_dir_name(void); [[deprecated]] char *getwd(char buf[PATH_MAX...
getwin.3x(3)
NAME delay_output, filter, flushinp, getwin, key_name, keyname, nofilter, putwin, unctrl, use_env, use_tioctl, wunctrl - miscellaneous curses utility routines SYNOPSIS #include <ncursesw/curses.h> const char *unctrl(chtype ch); wchar_t *wunctrl(cchar_t *wch); const char *keyname(int c); c...
getwin_sp.3x(3)
NAME curs_sp_funcs - curses screen-pointer extension SYNOPSIS #include <ncursesw/curses.h> int alloc_pair_sp(SCREEN* sp, int fg, int bg); int assume_default_colors_sp(SCREEN* sp, int fg, int bg); int baudrate_sp(SCREEN* sp); int beep_sp(SCREEN* sp); bool can_change_color_sp(SCREEN* ...
getxattr(2)
NAME getxattr, lgetxattr, fgetxattr - retrieve an extended attribute value LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <sys/xattr.h> ssize_t getxattr(size_t size; const char *path, const char *name, void value[size], size_t size); ssize_t lge...
getyx.3x(3)
NAME getyx, getparyx, getbegyx, getmaxyx - get curses cursor and window coordinates SYNOPSIS #include <ncursesw/curses.h> void getyx(WINDOW *win, int y, int x); void getparyx(WINDOW *win, int y, int x); void getbegyx(WINDOW *win, int y, int x); void getmaxyx(WINDOW *win, int y, int x); DE...
gfdl(7)
NAME gfdl - GNU Free Documentation License DESCRIPTION @comment For some cases, this default @node/@unnumbered is not applicable and @comment causes warnings. In those cases, the including file can set @comment nodefaultgnufreedocumentationlicensenode and provide it's own version. @comment F.i., when this file is in...
gfp_t(9)
Kernel API(9) API Manual Kernel API(9) NAME typedef gfp_t - Memory allocation flags. Description GFP flags are commonly used...
gfs2_add_jextent(9)
NAME gfs2_add_jextent - Add or merge a new extent to extent cache SYNOPSIS int gfs2_add_jextent (struct gfs2_jdesc *jd , u64 lblock , u64 dblock , u64 blocks ); ARGUMENTS jd The journal descriptor lblock The logical block at start of new extent dblock The physical block at start of ...
gfs2_adjust_quota(9)
NAME gfs2_adjust_quota - adjust record of current block usage SYNOPSIS int gfs2_adjust_quota (struct gfs2_sbd *sdp , loff_t loc , s64 change , struct gfs2_quota_data *qd , struct qc_dqblk *fdq ); ARGUMENTS sdp The superblock loc Offset of the entry in the quota file change The amo...
gfs2_adjust_reservation(9)
NAME gfs2_adjust_reservation - Adjust (or remove) a reservation after allocation SYNOPSIS void gfs2_adjust_reservation (struct gfs2_inode *ip , const struct gfs2_rbm *rbm , unsigned len ); ARGUMENTS ip The inode we have just allocated blocks for rbm The start of the allocated blocks l...
gfs2_ail1_empty(9)
NAME gfs2_ail1_empty - Try to empty the ail1 lists SYNOPSIS bool gfs2_ail1_empty (struct gfs2_sbd *sdp , int max_revokes ); ARGUMENTS sdp The superblock max_revokes If non-zero, add revokes where appropriate DESCRIPTION Tries to empty the ail1 lists, starting with the oldest first. Returns true if t...
gfs2_ail1_empty_one(9)
NAME gfs2_ail1_empty_one - Check whether or not a trans in the AIL has been synced SYNOPSIS int gfs2_ail1_empty_one (struct gfs2_sbd *sdp , struct gfs2_trans *tr , int *max_revokes ); ARGUMENTS sdp the filesystem tr the transaction max_revokes If nonzero, issue revokes for the bd item...
gfs2_ail1_flush(9)
NAME gfs2_ail1_flush - start writeback of some ail1 entries SYNOPSIS void gfs2_ail1_flush (struct gfs2_sbd *sdp , struct writeback_control *wbc ); ARGUMENTS sdp The super block wbc The writeback control structure DESCRIPTION Writes back some ail1 entries, according to the limits in the writeb...
gfs2_ail1_start(9)
NAME gfs2_ail1_start - start writeback of all ail1 entries SYNOPSIS void gfs2_ail1_start (struct gfs2_sbd *sdp ); ARGUMENTS sdp The superblock SEE ALSO Kernel file ./fs/gfs2/log.c gfs2_struct2blk(9), gfs2_remove_from_ail(9), gfs2_ail1_start_one(9), gfs2_ail1_flush(9), gfs2_ail1_empty_one(9), gfs2_ail...
gfs2_ail1_start_one(9)
NAME gfs2_ail1_start_one - Start I/O on a transaction SYNOPSIS int gfs2_ail1_start_one (struct gfs2_sbd *sdp , struct writeback_control *wbc , struct gfs2_trans *tr , struct blk_plug *plug ); ARGUMENTS sdp The superblock wbc The writeback control structure tr The transaction t...
gfs2_ail1_wipe(9)
NAME gfs2_ail1_wipe - remove deleted/freed buffers from the ail1 list SYNOPSIS void gfs2_ail1_wipe (struct gfs2_sbd *sdp , u64 bstart , u32 blen ); ARGUMENTS sdp superblock bstart starting block address of buffers to remove blen length of buffers to be removed DESCRIPTION This fu...
gfs2_ail_drain(9)
NAME gfs2_ail_drain - drain the ail lists after a withdraw SYNOPSIS void gfs2_ail_drain (struct gfs2_sbd *sdp ); ARGUMENTS sdp Pointer to GFS2 superblock SEE ALSO Kernel file ./fs/gfs2/log.c gfs2_struct2blk(9), gfs2_remove_from_ail(9), gfs2_ail1_start_one(9), gfs2_ail1_flush(9), gfs2_ail1_start(9), gfs...
gfs2_alloc_blocks(9)
NAME gfs2_alloc_blocks - Allocate one or more blocks of data and/or a dinode SYNOPSIS int gfs2_alloc_blocks (struct gfs2_inode *ip , u64 *bn , unsigned int *nblocks , bool dinode ); ARGUMENTS ip the inode to allocate the block for bn Used to return the starting block number nblocks ...
gfs2_alloc_extent(9)
NAME gfs2_alloc_extent - allocate an extent from a given bitmap SYNOPSIS void gfs2_alloc_extent (const struct gfs2_rbm *rbm , bool dinode , unsigned int *n ); ARGUMENTS rbm the resource group information dinode TRUE if the first block we allocate is for a dinode n The extent len...
gfs2_alloc_size(9)
NAME gfs2_alloc_size - Compute the maximum allocation size SYNOPSIS u64 gfs2_alloc_size (struct inode *inode , struct metapath *mp , u64 size ); ARGUMENTS inode The inode mp The metapath size Requested size in blocks DESCRIPTION Compute the maximum size of the next allocation at...
gfs2_allocate_folio_backing(9)
NAME gfs2_allocate_folio_backing - Allocate blocks for a write fault SYNOPSIS int gfs2_allocate_folio_backing (struct folio *folio , size_t length ); ARGUMENTS folio The (locked) folio to allocate backing for length Size of the allocation DESCRIPTION We try to allocate all the blocks required fo...
gfs2_atomic_open(9)
NAME gfs2_atomic_open - Atomically open a file SYNOPSIS int gfs2_atomic_open (struct inode *dir , struct dentry *dentry , struct file *file , unsigned flags , umode_t mode ); ARGUMENTS dir The directory dentry The proposed new entry file The proposed new struct file flags ...
gfs2_bit_search(9)
NAME gfs2_bit_search - search bitmap for a state SYNOPSIS u64 gfs2_bit_search (const __le64 *ptr , u64 mask , u8 state ); ARGUMENTS ptr Pointer to bitmap data mask Mask to use (normally 0x55555.... but adjusted for search start) state The state we are searching for DESCRIPTION We...
gfs2_bitcount(9)
NAME gfs2_bitcount - count the number of bits in a certain state SYNOPSIS u32 gfs2_bitcount (struct gfs2_rgrpd *rgd , const u8 *buffer , unsigned int buflen , u8 state ); ARGUMENTS rgd the resource group descriptor buffer the buffer that holds the bitmaps buflen the length (in bytes)...
gfs2_bitfit(9)
NAME gfs2_bitfit - Search an rgrp's bitmap buffer to find a bit-pair representing a block in a given allocation state. SYNOPSIS u32 gfs2_bitfit (const u8 *buf , const unsigned int len , u32 goal , u8 state ); ARGUMENTS buf the buffer that holds the bitmaps len the length (in bytes) of the buff...
gfs2_blk2rgrpd(9)
NAME gfs2_blk2rgrpd - Find resource group for a given data/meta block number SYNOPSIS struct gfs2_rgrpd * gfs2_blk2rgrpd (struct gfs2_sbd *sdp , u64 blk , bool exact ); ARGUMENTS sdp The GFS2 superblock blk The data block number exact True if this needs to be an exact match DESC...
gfs2_block_map(9)
NAME gfs2_block_map - Map one or more blocks of an inode to a disk block SYNOPSIS int gfs2_block_map (struct inode *inode , sector_t lblock , struct buffer_head *bh_map , int create ); ARGUMENTS inode The inode lblock The logical block number bh_map The bh to be mapped create ...
gfs2_bmap(9)
NAME gfs2_bmap - Block map function SYNOPSIS sector_t gfs2_bmap (struct address_space *mapping , sector_t lblock ); ARGUMENTS mapping Address space info lblock The block to map RETURN The disk address for the block or 0 on hole or error SEE ALSO Kernel file ./fs/gfs2/aops.c gfs2_get_block_noal...
gfs2_check_blk_type(9)
NAME gfs2_check_blk_type - Check the type of a block SYNOPSIS int gfs2_check_blk_type (struct gfs2_sbd *sdp , u64 no_addr , unsigned int type ); ARGUMENTS sdp The superblock no_addr The block number to check type The block type we are looking for DESCRIPTION The inode glock of no_a...
gfs2_check_sb(9)
NAME gfs2_check_sb - Check superblock SYNOPSIS int gfs2_check_sb (struct gfs2_sbd *sdp , int silent ); ARGUMENTS sdp the filesystem silent Don't print a message if the check fails DESCRIPTION Checks the version code of the FS is one that we understand how to read and that the sizes of the variou...
gfs2_create(9)
NAME gfs2_create - Create a file SYNOPSIS int gfs2_create (struct mnt_idmap *idmap , struct inode *dir , struct dentry *dentry , umode_t mode , bool excl ); ARGUMENTS idmap idmap of the mount the inode was found from dir The directory in which to create the file dentry The dentry of...
gfs2_create_inode(9)
NAME gfs2_create_inode - Create a new inode SYNOPSIS int gfs2_create_inode (struct inode *dir , struct dentry *dentry , struct file *file , umode_t mode , dev_t dev , const char *symname , unsigned int size , int excl ); ARGUMENTS dir The parent directory dentry The new dentry file ...
gfs2_dir_add(9)
NAME gfs2_dir_add - Add new filename into directory SYNOPSIS int gfs2_dir_add (struct inode *inode , const struct qstr *name , const struct gfs2_inode *nip , struct gfs2_diradd *da ); ARGUMENTS inode The directory inode name The new name nip The GFS2 inode to be linked in to the d...
gfs2_dir_del(9)
NAME gfs2_dir_del - Delete a directory entry SYNOPSIS int gfs2_dir_del (struct gfs2_inode *dip , const struct dentry *dentry ); ARGUMENTS dip The GFS2 inode dentry The directory entry we want to delete RETURN 0 on success, error code on failure SEE ALSO Kernel file ./fs/gfs2/dir.c gfs2_dir_writ...
gfs2_dir_exhash_dealloc(9)
NAME gfs2_dir_exhash_dealloc - free all the leaf blocks in a directory SYNOPSIS int gfs2_dir_exhash_dealloc (struct gfs2_inode *dip ); ARGUMENTS dip the directory DESCRIPTION Dealloc all on-disk directory leaves to FREEMETA state Change on-disk inode type to "regular file" RETURN errno SEE ALSO Kernel file...
gfs2_dir_get_hash_table(9)
NAME gfs2_dir_get_hash_table - Get pointer to the dir hash table SYNOPSIS __be64 * gfs2_dir_get_hash_table (struct gfs2_inode *ip ); ARGUMENTS ip The inode in question RETURN The hash table or an error SEE ALSO Kernel file ./fs/gfs2/dir.c gfs2_dir_write_data(9), gfs2_dir_read_data(9), gfs2_dir_hash_in...
gfs2_dir_hash_inval(9)
NAME gfs2_dir_hash_inval - Invalidate dir hash SYNOPSIS void gfs2_dir_hash_inval (struct gfs2_inode *ip ); ARGUMENTS ip The directory inode DESCRIPTION Must be called with an exclusive glock, or during glock invalidation. SEE ALSO Kernel file ./fs/gfs2/dir.c gfs2_dir_write_data(9), gfs2_dir_read_data(9...
gfs2_dir_mvino(9)
NAME gfs2_dir_mvino - Change inode number of directory entry SYNOPSIS int gfs2_dir_mvino (struct gfs2_inode *dip , const struct qstr *filename , const struct gfs2_inode *nip , unsigned int new_type ); ARGUMENTS dip The GFS2 directory inode filename the filename to be moved nip the n...
gfs2_dir_read_data(9)
NAME gfs2_dir_read_data - Read a data from a directory inode SYNOPSIS int gfs2_dir_read_data (struct gfs2_inode *ip , __be64 *buf , unsigned int size ); ARGUMENTS ip The GFS2 Inode buf The buffer to place result into size Amount of data to transfer RETURN The amount of data ac...
gfs2_dir_readahead(9)
NAME gfs2_dir_readahead - Issue read-ahead requests for leaf blocks. SYNOPSIS void gfs2_dir_readahead (struct inode *inode , unsigned hsize , u32 index , struct file_ra_state *f_ra ); ARGUMENTS inode the directory inode hsize hash table size index index into the hash table f_...
gfs2_dir_search(9)
NAME gfs2_dir_search - Search a directory SYNOPSIS struct inode * gfs2_dir_search (struct inode *dir , const struct qstr *name , bool fail_on_exist ); ARGUMENTS dir The GFS2 directory inode name The name we are looking up fail_on_exist Fail if the name exists rather t...
gfs2_dir_write_data(9)
NAME gfs2_dir_write_data - Write directory information to the inode SYNOPSIS int gfs2_dir_write_data (struct gfs2_inode *ip , const char *buf , u64 offset , unsigned int size ); ARGUMENTS ip The GFS2 inode buf The buffer containing information to be written offset The file offset...
gfs2_diradd_alloc_required(9)
NAME gfs2_diradd_alloc_required - find if adding entry will require an allocation SYNOPSIS int gfs2_diradd_alloc_required (struct inode *inode , const struct qstr *name , struct gfs2_diradd *da ); ARGUMENTS inode the directory inode being written to name the filename that's going to be added ...
gfs2_dirty_inode(9)
NAME gfs2_dirty_inode - check for atime updates SYNOPSIS void gfs2_dirty_inode (struct inode *inode , int flags ); ARGUMENTS inode The inode in question flags The type of dirty DESCRIPTION Unfortunately it can be called under any combination of inode glock and freeze glock, so we have to check c...
gfs2_dispose_glock_lru(9)
NAME gfs2_dispose_glock_lru - Demote a list of glocks SYNOPSIS unsigned long gfs2_dispose_glock_lru (struct list_head *list ); ARGUMENTS list The list to dispose of DESCRIPTION Disposing of glocks may involve disk accesses, so that here we sort the glocks by number (i.e. disk location of the inodes) so that ...
gfs2_drevalidate(9)
NAME gfs2_drevalidate - Check directory lookup consistency SYNOPSIS int gfs2_drevalidate (struct inode *dir , const struct qstr *name , struct dentry *dentry , unsigned int flags ); ARGUMENTS dir expected parent directory inode name expexted name dentry dentry to check flag...
gfs2_drop_inode(9)
NAME gfs2_drop_inode - Drop an inode (test for remote unlink) SYNOPSIS int gfs2_drop_inode (struct inode *inode ); ARGUMENTS inode The inode to drop DESCRIPTION If we've received a callback on an iopen lock then it's because a remote node tried to deallocate the inode but failed due to this node still having...
gfs2_dump_glock(9)
NAME gfs2_dump_glock - print information about a glock SYNOPSIS void gfs2_dump_glock (struct seq_file *seq , struct gfs2_glock *gl , bool fsid ); ARGUMENTS seq The seq_file struct gl the glock fsid If true, also dump the file system id DESCRIPTION The file format is as follows...
gfs2_ea_dealloc(9)
NAME gfs2_ea_dealloc - deallocate the extended attribute fork SYNOPSIS int gfs2_ea_dealloc (struct gfs2_inode *ip , bool initialized ); ARGUMENTS ip the inode initialized xattrs have been initialized RETURN errno SEE ALSO Kernel file ./fs/gfs2/xattr.c gfs2_listxattr(9), gfs2_iter_unstuffed(9), __gf...
gfs2_end_log_read(9)
NAME gfs2_end_log_read - end I/O callback for reads from the log SYNOPSIS void gfs2_end_log_read (struct bio *bio ); ARGUMENTS bio The bio DESCRIPTION Simply unlock the pages in the bio. The main thread will wait on them and process them in order as necessary. SEE ALSO Kernel file ./fs/gfs2/lops.c gfs2_p...
gfs2_end_log_write(9)
NAME gfs2_end_log_write - end of i/o to the log SYNOPSIS void gfs2_end_log_write (struct bio *bio ); ARGUMENTS bio The bio DESCRIPTION Each bio_vec contains either data from the pagecache or data relating to the log itself. Here we iterate over the bio_vec array, processing both kinds of data. SEE ALSO Kern...
gfs2_end_log_write_bh(9)
NAME gfs2_end_log_write_bh - end log write of pagecache data with buffers SYNOPSIS void gfs2_end_log_write_bh (struct gfs2_sbd *sdp , struct folio *folio , size_t offset , size_t size , blk_status_t error ); ARGUMENTS sdp The superblock folio The folio offset The first byte within t...
gfs2_evict_inode(9)
NAME gfs2_evict_inode - Remove an inode from cache SYNOPSIS void gfs2_evict_inode (struct inode *inode ); ARGUMENTS inode The inode to evict DESCRIPTION There are three cases to consider: 1. i_nlink == 0, we are final opener (and must deallocate) 2. i_nlink == 0, we are not the final opener (and cannot dea...
gfs2_evict_inodes(9)
NAME gfs2_evict_inodes - evict inodes cooperatively SYNOPSIS void gfs2_evict_inodes (struct super_block *sb ); ARGUMENTS sb the superblock DESCRIPTION When evicting an inode with a zero link count, we are trying to upgrade the inode's iopen glock from SH to EX mode in order to determine if we can delete ...
gfs2_exchange(9)
NAME gfs2_exchange - exchange two files SYNOPSIS int gfs2_exchange (struct inode *odir , struct dentry *odentry , struct inode *ndir , struct dentry *ndentry , unsigned int flags ); ARGUMENTS odir Parent directory of old file name odentry The old dentry of the file ndir Parent direct...
gfs2_extent_length(9)
NAME gfs2_extent_length - Returns length of an extent of blocks SYNOPSIS unsigned int gfs2_extent_length (struct buffer_head *bh , __be64 *ptr , int *eob ); ARGUMENTS bh The metadata block ptr Current position in bh eob Set to 1 if we hit "end of block" RETURN The length of t...
gfs2_file_write_iter(9)
NAME gfs2_file_write_iter - Perform a write to a file SYNOPSIS ssize_t gfs2_file_write_iter (struct kiocb *iocb , struct iov_iter *from ); ARGUMENTS iocb The io context from The data to write DESCRIPTION We have to do a lock/unlock here to refresh the inode size for O_APPEND writes, otherwis...
gfs2_fill_super(9)
NAME gfs2_fill_super - Read in superblock SYNOPSIS int gfs2_fill_super (struct super_block *sb , struct fs_context *fc ); ARGUMENTS sb The VFS superblock fc Mount options and flags RETURN -errno SEE ALSO Kernel file ./fs/gfs2/ops_fstype.c gfs2_tune_init(9), gfs2_check_sb(9), gfs2_read_supe...
gfs2_find_jhead(9)
NAME gfs2_find_jhead - find the head of a log SYNOPSIS int gfs2_find_jhead (struct gfs2_jdesc *jd , struct gfs2_log_header_host *head ); ARGUMENTS jd The journal descriptor head The log descriptor for the head of the log is returned here DESCRIPTION Do a search of a journal by reading it in l...
gfs2_fitrim(9)
NAME gfs2_fitrim - Generate discard requests for unused bits of the filesystem SYNOPSIS int gfs2_fitrim (struct file *filp , void __user *argp ); ARGUMENTS filp Any file on the filesystem argp Pointer to the arguments (also used to pass result) RETURN 0 on success, otherwise error code SEE ALS...
gfs2_flock(9)
NAME gfs2_flock - acquire/release a flock lock on a file SYNOPSIS int gfs2_flock (struct file *file , int cmd , struct file_lock *fl ); ARGUMENTS file the file pointer cmd either modify or retrieve lock state, possibly wait fl type and range of lock RETURN errno SEE ALSO Kern...
gfs2_flush_revokes(9)
NAME gfs2_flush_revokes - Add as many revokes to the system transaction as we can SYNOPSIS void gfs2_flush_revokes (struct gfs2_sbd *sdp ); ARGUMENTS sdp The GFS2 superblock DESCRIPTION Our usual strategy is to defer writing revokes as much as we can in the hope that we'll eventually overwrite the journal...
gfs2_free_extlen(9)
NAME gfs2_free_extlen - Return extent length of free blocks SYNOPSIS u32 gfs2_free_extlen (const struct gfs2_rbm *rrbm , u32 len ); ARGUMENTS rrbm Starting position len Max length to check DESCRIPTION Starting at the block specified by the rbm, see how many free blocks there are, not reading ...
gfs2_free_journal_extents(9)
NAME gfs2_free_journal_extents - Free cached journal bmap info SYNOPSIS void gfs2_free_journal_extents (struct gfs2_jdesc *jd ); ARGUMENTS jd The journal SEE ALSO Kernel file ./fs/gfs2/bmap.c gfs2_unstuffer_folio(9), gfs2_unstuff_dinode(9), find_metapath(9), metaptr1(9), metapointer(9), lookup_m...
gfs2_free_meta(9)
NAME gfs2_free_meta - free a contiguous run of data block(s) SYNOPSIS void gfs2_free_meta (struct gfs2_inode *ip , struct gfs2_rgrpd *rgd , u64 bstart , u32 blen ); ARGUMENTS ip the inode these blocks are being freed from rgd the resource group the blocks are in bstart first bloc...
gfs2_freeze_lock_shared(9)
NAME gfs2_freeze_lock_shared - hold the freeze glock SYNOPSIS int gfs2_freeze_lock_shared (struct gfs2_sbd *sdp ); ARGUMENTS sdp the superblock SEE ALSO Kernel file ./fs/gfs2/util.c check_journal_clean(9), gfs2_offline_uevent(9) April 2026 ...
gfs2_freeze_super(9)
NAME gfs2_freeze_super - prevent further writes to the filesystem SYNOPSIS int gfs2_freeze_super (struct super_block *sb , enum freeze_holder who , const void *freeze_owner ); ARGUMENTS sb the VFS structure for the filesystem who freeze flags freeze_owner owner of t...
gfs2_fsync(9)
NAME gfs2_fsync - sync the dirty data for a file (across the cluster) SYNOPSIS int gfs2_fsync (struct file *file , loff_t start , loff_t end , int datasync ); ARGUMENTS file the file that points to the dentry start the start position in the file to sync end the end position in the...
gfs2_get_block_noalloc(9)
NAME gfs2_get_block_noalloc - Fills in a buffer head with details about a block SYNOPSIS int gfs2_get_block_noalloc (struct inode *inode , sector_t lblock , struct buffer_head *bh_result , int create ); ARGUMENTS inode The inode lblock The block number to look up bh_result The buffer head...
gfs2_get_link(9)
NAME gfs2_get_link - Follow a symbolic link SYNOPSIS const char * gfs2_get_link (struct dentry *dentry , struct inode *inode , struct delayed_call *done ); ARGUMENTS dentry The dentry of the link inode The inode of the link done destructor for return value DESCRIPTION This can handl...
gfs2_get_tree(9)
NAME gfs2_get_tree - Get the GFS2 superblock and root directory SYNOPSIS int gfs2_get_tree (struct fs_context *fc ); ARGUMENTS fc The filesystem context RETURN 0 or -errno on error SEE ALSO Kernel file ./fs/gfs2/ops_fstype.c gfs2_tune_init(9), gfs2_check_sb(9), gfs2_read_super(9), gfs2_read_sb(9), gfs2_jin...
gfs2_getattr(9)
NAME gfs2_getattr - Read out an inode's attributes SYNOPSIS int gfs2_getattr (struct mnt_idmap *idmap , const struct path *path , struct kstat *stat , u32 request_mask , unsigned int flags ); ARGUMENTS idmap idmap of the mount the inode was found from path Object to query stat The ...
gfs2_getbuf(9)
NAME gfs2_getbuf - Get a buffer with a given address space SYNOPSIS struct buffer_head * gfs2_getbuf (struct gfs2_glock *gl , u64 blkno , int create ); ARGUMENTS gl the glock blkno the block number (filesystem scope) create 1 if the buffer should be created RETURN the buffer SEE ...
gfs2_gl_hash_clear(9)
NAME gfs2_gl_hash_clear - Empty out the glock hash table SYNOPSIS void gfs2_gl_hash_clear (struct gfs2_sbd *sdp ); ARGUMENTS sdp the filesystem DESCRIPTION Called when unmounting the filesystem. SEE ALSO Kernel file ./fs/gfs2/glock.c wake_up_glock(9), gfs2_glock_hold(9), gfs2_glock_put(9), may_grant(9...
gfs2_glock_async_wait(9)
NAME gfs2_glock_async_wait - wait on multiple asynchronous glock acquisitions SYNOPSIS int gfs2_glock_async_wait (unsigned int num_gh , struct gfs2_holder *ghs , unsigned int retries ); ARGUMENTS num_gh the number of holders in the array ghs the glock holder array retries number of re...
gfs2_glock_complete(9)
NAME gfs2_glock_complete - Callback used by locking SYNOPSIS void gfs2_glock_complete (struct gfs2_glock *gl , int ret ); ARGUMENTS gl Pointer to the glock ret The return value from the dlm DESCRIPTION The gl_reply field is under the gl_lockref.lock lock so that it is ok to use a bitfield sh...
gfs2_glock_dq(9)
NAME gfs2_glock_dq - dequeue a struct gfs2_holder from a glock (release a glock) SYNOPSIS void gfs2_glock_dq (struct gfs2_holder *gh ); ARGUMENTS gh the glock holder SEE ALSO Kernel file ./fs/gfs2/glock.c wake_up_glock(9), gfs2_glock_hold(9), gfs2_glock_put(9), may_grant(9), do_error(9), find_first_ho...
gfs2_glock_dq_m(9)
NAME gfs2_glock_dq_m - release multiple glocks SYNOPSIS void gfs2_glock_dq_m (unsigned int num_gh , struct gfs2_holder *ghs ); ARGUMENTS num_gh the number of structures ghs an array of struct gfs2_holder structures SEE ALSO Kernel file ./fs/gfs2/glock.c wake_up_glock(9), gfs2_glock_hold(9), ...
gfs2_glock_dq_uninit(9)
NAME gfs2_glock_dq_uninit - dequeue a holder from a glock and initialize it SYNOPSIS void gfs2_glock_dq_uninit (struct gfs2_holder *gh ); ARGUMENTS gh the holder structure SEE ALSO Kernel file ./fs/gfs2/glock.c wake_up_glock(9), gfs2_glock_hold(9), gfs2_glock_put(9), may_grant(9), do_error(9), find_fi...
gfs2_glock_get(9)
NAME gfs2_glock_get - Get a glock, or create one if one doesn't exist SYNOPSIS int gfs2_glock_get (struct gfs2_sbd *sdp , u64 number , const struct gfs2_glock_operations *glops , int create , struct gfs2_glock **glp ); ARGUMENTS sdp The GFS2 superblock number the lock number glops T...
gfs2_glock_hold(9)
NAME gfs2_glock_hold - increment reference count on glock SYNOPSIS struct gfs2_glock * gfs2_glock_hold (struct gfs2_glock *gl ); ARGUMENTS gl The glock to hold SEE ALSO Kernel file ./fs/gfs2/glock.c wake_up_glock(9), gfs2_glock_put(9), may_grant(9), do_error(9), find_first_holder(9), do_promote(9), find_fi...
gfs2_glock_holder_ready(9)
NAME gfs2_glock_holder_ready - holder is ready and its error code can be collected SYNOPSIS int gfs2_glock_holder_ready (struct gfs2_holder *gh ); ARGUMENTS gh the glock holder DESCRIPTION Called when a glock holder no longer needs to be waited for because it is now either held (HIF_HOLDER set; gh_error == ...
gfs2_glock_nq(9)
NAME gfs2_glock_nq - enqueue a struct gfs2_holder onto a glock (acquire a glock) SYNOPSIS int gfs2_glock_nq (struct gfs2_holder *gh ); ARGUMENTS gh the holder structure DESCRIPTION if (gh->gh_flags & GL_ASYNC), this never returns an error RETURN 0, GLR_TRYFAILED, or errno on failure SEE ALSO Kernel file ...