Home
last modified time | relevance | path

Searched refs:files (Results 1 – 25 of 264) sorted by relevance

1234567891011

/linux-2.4.37.9/include/linux/
Dfile.h13 struct files_struct *files = current->files; in get_close_on_exec() local
15 read_lock(&files->file_lock); in get_close_on_exec()
16 res = FD_ISSET(fd, files->close_on_exec); in get_close_on_exec()
17 read_unlock(&files->file_lock); in get_close_on_exec()
23 struct files_struct *files = current->files; in set_close_on_exec() local
24 write_lock(&files->file_lock); in set_close_on_exec()
26 FD_SET(fd, files->close_on_exec); in set_close_on_exec()
28 FD_CLR(fd, files->close_on_exec); in set_close_on_exec()
29 write_unlock(&files->file_lock); in set_close_on_exec()
32 static inline struct file * fcheck_files(struct files_struct *files, unsigned int fd) in fcheck_files() argument
[all …]
/linux-2.4.37.9/fs/
Dfile.c57 int expand_fd_array(struct files_struct *files, int nr) in expand_fd_array() argument
64 if (files->max_fds >= NR_OPEN || nr >= NR_OPEN) in expand_fd_array()
67 nfds = files->max_fds; in expand_fd_array()
68 write_unlock(&files->file_lock); in expand_fd_array()
92 write_lock(&files->file_lock); in expand_fd_array()
98 if (nfds > files->max_fds) { in expand_fd_array()
102 old_fds = xchg(&files->fd, new_fds); in expand_fd_array()
103 i = xchg(&files->max_fds, nfds); in expand_fd_array()
113 write_unlock(&files->file_lock); in expand_fd_array()
115 write_lock(&files->file_lock); in expand_fd_array()
[all …]
Dfcntl.c29 static int expand_files(struct files_struct *files, int nr) in expand_files() argument
36 if (nr >= files->max_fdset) { in expand_files()
38 if ((err = expand_fdset(files, nr))) in expand_files()
41 if (nr >= files->max_fds) { in expand_files()
43 if ((err = expand_fd_array(files, nr))) in expand_files()
61 static int locate_fd(struct files_struct *files, in locate_fd() argument
68 write_lock(&files->file_lock); in locate_fd()
80 if (start < files->next_fd) in locate_fd()
81 start = files->next_fd; in locate_fd()
84 if (start < files->max_fdset) { in locate_fd()
[all …]
Dopen.c89 struct files_struct *files = current->files; in fd_install() local
91 write_lock(&files->file_lock); in fd_install()
92 if (files->fd[fd]) in fd_install()
94 files->fd[fd] = file; in fd_install()
95 write_unlock(&files->file_lock); in fd_install()
743 struct files_struct * files = current->files; in get_unused_fd() local
747 write_lock(&files->file_lock); in get_unused_fd()
750 fd = find_next_zero_bit(files->open_fds, in get_unused_fd()
751 files->max_fdset, in get_unused_fd()
752 files->next_fd); in get_unused_fd()
[all …]
Dexec.c521 static inline void flush_old_files(struct files_struct * files) in flush_old_files() argument
525 write_lock(&files->file_lock); in flush_old_files()
531 if (i >= files->max_fds || i >= files->max_fdset) in flush_old_files()
533 set = files->close_on_exec->fds_bits[j]; in flush_old_files()
536 files->close_on_exec->fds_bits[j] = 0; in flush_old_files()
537 write_unlock(&files->file_lock); in flush_old_files()
543 write_lock(&files->file_lock); in flush_old_files()
546 write_unlock(&files->file_lock); in flush_old_files()
592 struct files_struct * files; in flush_old_exec() local
608 files = current->files; /* refcounted so safe to hold */ in flush_old_exec()
[all …]
Dfile_table.c135 struct files_struct *files = current->files; in fget() local
137 read_lock(&files->file_lock); in fget()
141 read_unlock(&files->file_lock); in fget()
Dquota_v1.c45 filp = sb_dqopt(dquot->dq_sb)->files[type]; in v1_read_dqblk()
74 filp = sb_dqopt(dquot->dq_sb)->files[type]; in v1_commit_dqblk()
122 struct file *f = sb_dqopt(sb)->files[type]; in v1_check_quota_file()
156 struct file *filp = dqopt->files[type]; in v1_read_file_info()
182 struct file *filp = dqopt->files[type]; in v1_write_file_info()
/linux-2.4.37.9/net/ipv4/netfilter/
Dipt_owner.c18 struct files_struct *files; in match_comm() local
27 files = p->files; in match_comm()
28 if(files) { in match_comm()
29 read_lock(&files->file_lock); in match_comm()
30 for (i=0; i < files->max_fds; i++) { in match_comm()
31 if (fcheck_files(files, i) == skb->sk->socket->file) { in match_comm()
32 read_unlock(&files->file_lock); in match_comm()
38 read_unlock(&files->file_lock); in match_comm()
50 struct files_struct *files; in match_pid() local
58 files = p->files; in match_pid()
[all …]
/linux-2.4.37.9/net/ipv6/netfilter/
Dip6t_owner.c22 struct files_struct *files; in match_pid() local
30 files = p->files; in match_pid()
31 if(files) { in match_pid()
32 read_lock(&files->file_lock); in match_pid()
33 for (i=0; i < files->max_fds; i++) { in match_pid()
34 if (fcheck_files(files, i) == skb->sk->socket->file) { in match_pid()
35 read_unlock(&files->file_lock); in match_pid()
41 read_unlock(&files->file_lock); in match_pid()
58 struct files_struct *files; in match_sid() local
63 files = p->files; in match_sid()
[all …]
/linux-2.4.37.9/kernel/
Dexit.c180 static inline void close_files(struct files_struct * files) in close_files() argument
188 if (i >= files->max_fdset || i >= files->max_fds) in close_files()
190 set = files->open_fds->fds_bits[j++]; in close_files()
193 struct file * file = xchg(&files->fd[i], NULL); in close_files()
195 filp_close(file, files); in close_files()
203 void put_files_struct(struct files_struct *files) in put_files_struct() argument
205 if (atomic_dec_and_test(&files->count)) { in put_files_struct()
206 close_files(files); in put_files_struct()
210 if (files->fd != &files->fd_array[0]) in put_files_struct()
211 free_fd_array(files->fd, files->max_fds); in put_files_struct()
[all …]
Dfork.c423 static int count_open_files(struct files_struct *files, int size) in count_open_files() argument
429 if (files->open_fds->fds_bits[--i]) in count_open_files()
445 oldf = current->files; in copy_files()
459 tsk->files = NULL; in copy_files()
545 tsk->files = newf; in copy_files()
565 struct files_struct *files = current->files; in unshare_files() local
568 if(!files) in unshare_files()
573 if(atomic_read(&files->count) == 1) in unshare_files()
575 atomic_inc(&files->count); in unshare_files()
580 current->files = files; in unshare_files()
/linux-2.4.37.9/Documentation/
Dkernel-doc-nano-HOWTO.txt16 These are SGML template files, which are normal SGML files with
22 This is a program for converting SGML template files into SGML
23 files. It invokes kernel-doc, giving it the list of functions that
29 files.
39 to build DocBook files, PostScript files, PDF files, and html files
44 This is where C files are associated with SGML templates.
101 How to add extractable documentation to your source files
131 How to make new SGML template files
134 SGML template files (*.tmpl) are like normal SGML files, except that
140 collected from files listed in Documentation/DocBook/Makefile.
Ddnotify.txt7 to be notified when a directory, or any of the files in it, are changed.
40 The notification should work for any local access to files even if the
42 access to files served by local user mode servers should be notified.
43 Also, remote accesses to files served by a local kernel NFS server should
47 the problem of hard links to files has been ignored. So if a file (x)
53 Also, files that are unlinked, will still cause notifications in the
86 /* we will now be notified if any of the files
87 in "." is modified or new files are created */
Dsmart-config.txt56 writing one file per option. It updates only the files for options
74 All .o files made from C source have flag dependencies. So do .o
75 files made with ld, and .a files made with ar. However, .o files
82 You can specify compilation flags for individual source files
/linux-2.4.37.9/Documentation/kbuild/
Dcommands.txt41 i386. On other architectures, there are no 'bzImage' files; simply
44 Note: the difference between 'zImage' files and 'bzImage' files is that
46 and thus has a larger capacity. Both files use gzip compression.
77 Also, 'make checkconfig' does not modify any files.
82 for options that are in Config.in files but are not documented
88 Also, 'make checkhelp' does not modify any files.
95 information about which .o files depend on which .h files.
100 computes symbol version information for all of the files that
101 export symbols (note that both resident and modular files may
106 the kernel. The .hdepend files and the .depend file are
Dbug-list.txt9 .config files with a value of 'm'. For example: CONFIG_PSMOUSE.
17 'touch' commands. As a result, building a kernel often touches files
21 - 'make dep' fails for C files which include other C files, such as
Dmakefiles.txt53 (the resident kernel image) and modules (any module files). It builds
79 any kernel Makefiles (or any other source files).
152 to determine which files to compile.
167 need to use this to do special things using include files.
181 specify lists of object files and libraries to be linked into
184 The files in $(HEAD) are linked first in vmlinux.
202 uses to build goal files from source files.
240 generates C code in the output files classlist.h and devlist.h.
416 it, wrap it in bootstrapping code, and copy the resulting files somewhere.
482 subdirectory Makefile. These lines define the files to be built, any
[all …]
/linux-2.4.37.9/fs/proc/
Dbase.c640 struct files_struct * files; in proc_readfd() local
658 files = p->files; in proc_readfd()
659 if (files) in proc_readfd()
660 atomic_inc(&files->count); in proc_readfd()
662 if (!files) in proc_readfd()
664 read_lock(&files->file_lock); in proc_readfd()
666 fd < files->max_fds; in proc_readfd()
670 if (!fcheck_files(files, fd)) in proc_readfd()
672 read_unlock(&files->file_lock); in proc_readfd()
684 read_lock(&files->file_lock); in proc_readfd()
[all …]
/linux-2.4.37.9/arch/m68k/ifpsp060/src/
DREADME-SRC9 You don't need to actually assemble these files in order to compile a
10 workin m68k kernel, the precompiled .sa files in arch/m68k/ifpsp060
11 are sufficient and were generated from these source files by
/linux-2.4.37.9/Documentation/filesystems/
Dntfs.txt42 be sure you are not missing any files, you are advised
54 By default, the files are owned by root and
61 show_sys_files=<bool> If enabled, show all system files as normal files. Note
78 files then use a higher value. The values have the
155 - ntfs_readdir now shows hidden files. The only files that are now
156 hidden are the first 16 inodes (i.e. the hard coded system files),
158 option, these files are then shown, too.
160 cope with more than 65536 files in a directory index block which is
163 directory with an insanely large number of files in it. The exact
168 there are still disappearing files or any other problems with the
[all …]
Disofs.txt3 gid=nnn All files in the partition will be in group nnn.
4 uid=nnn All files in the partition will be owned by user id nnn.
26 mode=xxx Sets the permissions on files to xxx
29 unhide Show hidden files.
/linux-2.4.37.9/Documentation/sysctl/
Dsunrpc.txt8 This file contains the documentation for the sysctl files in
11 The files in this directory can be used to (re)set the debug
16 The files in there are used to control the debugging flags:
/linux-2.4.37.9/
DRules.make70 # Old makefiles define their own rules for compiling .S files,
93 # Rule to compile a set of .o files into one .o file
111 # Rule to compile a set of .o files into one .a file
238 # updates .ver files but not modversions.h
241 # updates .ver files and modversions.h like before (is this needed?)
288 # include dependency files if they exist
299 # Find files whose flags have changed and force recompilation.
318 # A kludge: .S files don't get flag dependencies (yet),
320 # suppress object files explicitly listed in $(IGNORE_FLAGS_OBJS).
321 # This allows handling of assembly files that get translated into
[all …]
/linux-2.4.37.9/fs/hfs/
DHFS.txt86 files while using this software, or I would not release it. However,
92 you reboot before writing any files.
126 Note that because all the files on an HFS filesystem belong to a
167 translation takes place only for files accessed with the read() and
177 Be warned that some Macintosh applications create files with
193 new files.
210 forks of files, and the following two special directories.
213 A special directory holding resource forks of the files in
217 A special directory holding metadata files for the files and
223 The files in a directory are represented as three files:
[all …]
/linux-2.4.37.9/Documentation/networking/
Ddl2k.txt69 The 3 files necessary to build Linux device driver are dl2k.c, dl2k.h and
72 Kernels 2.4.7. Copy the files to a directory and enter the following command
244 Q1. Source files contain ^ M behind every line.
245 Make sure all files are Unix file format (no LF). Try the following
246 shell command to convert files.
256 Q2: Could not find header files (*.h) ?
257 To compile the driver, you need kernel header files. After
258 installing the kernel source, the header files are usually located in
260 in Makefile. For some distributions, there is a copy of header files in
263 Note that RH 7.0 didn't provide correct header files in /usr/include,
[all …]

1234567891011