Home
last modified time | relevance | path

Searched full:symlink (Results 1 – 25 of 481) sorted by relevance

12345678910>>...20

/linux-6.12.1/fs/crypto/
Dhooks.c216 * fscrypt_prepare_symlink() - prepare to create a possibly-encrypted symlink
217 * @dir: directory in which the symlink is being created
218 * @target: plaintext symlink target
220 * @max_len: space the filesystem has available to store the symlink target
221 * @disk_link: (out) the on-disk symlink target being prepared
223 * This function computes the size the symlink target will require on-disk,
225 * encrypted symlink may be longer than the original.
227 * Additionally, @disk_link->name is set to @target if the symlink will be
228 * unencrypted, but left NULL if the symlink will be encrypted. For encrypted
231 * filesystems need to know the size of the symlink target before creating the
[all …]
/linux-6.12.1/fs/sysfs/
Dsymlink.c3 * fs/sysfs/symlink.c - sysfs symlink implementation
56 * sysfs_create_link_sd - create symlink to a given object.
59 * @name: name of the symlink.
84 * sysfs_create_link - create symlink between two objects.
87 * @name: name of the symlink.
97 * sysfs_create_link_nowarn - create symlink between two objects.
100 * @name: name of the symlink.
113 * sysfs_delete_link - remove symlink in object's directory.
116 * @name: name of the symlink to remove.
139 * sysfs_remove_link - remove symlink in object's directory.
[all …]
/linux-6.12.1/tools/testing/selftests/fchmodat2/
Dfchmodat2_test.c38 ret = symlinkat("regfile", dfd, "symlink"); in setup_testdir()
40 ksft_exit_fail_msg("%s: failed to create symlink in tmpdir\n", in setup_testdir()
92 ret = sys_fchmodat2(dfd, "symlink", 0640, 0); in test_symlink()
101 if (!expect_mode(dfd, "symlink", 0120777)) in test_symlink()
102 ksft_exit_fail_msg("%s: wrong symlink mode bits after fchmodat2\n", in test_symlink()
105 ret = sys_fchmodat2(dfd, "symlink", 0600, AT_SYMLINK_NOFOLLOW); in test_symlink()
109 * first check the symlink target but if the operation fails we mark the in test_symlink()
114 if (ret == 0 && !expect_mode(dfd, "symlink", 0120600)) in test_symlink()
115 ksft_exit_fail_msg("%s: wrong symlink mode bits after fchmodat2 with nofollow\n", in test_symlink()
123 ksft_test_result_skip("fchmodat2(symlink)\n"); in test_symlink()
[all …]
/linux-6.12.1/Documentation/PCI/endpoint/
Dpci-endpoint-cfs.rst72 ... <Symlink EPF Device 31>/
74 ... <Symlink EPC Device1>/
76 ... <Symlink EPC Device2>/
79 Non-transparent bridge), symlink of endpoint controller connected to primary
80 interface should be added in 'primary' directory and symlink of endpoint
85 (<Symlink EPF Device 31>) to other <EPF Device>. These symbolic links should
100 ... <Symlink EPF Device11>/
101 ... <Symlink EPF Device12>/
104 ... <Symlink EPF Device21>/
105 ... <Symlink EPF Device22>/
/linux-6.12.1/tools/testing/selftests/openat2/
Dresolve_test.c153 { .name = "[beneath] symlink temporary jump outside $root", in test_openat2_opath_tests()
156 { .name = "[beneath] chained symlink temporary jump outside $root", in test_openat2_opath_tests()
175 { .name = "[beneath] relative symlink inside $root", in test_openat2_opath_tests()
178 { .name = "[beneath] chained-'..' relative symlink inside $root", in test_openat2_opath_tests()
181 { .name = "[beneath] absolute symlink component outside $root", in test_openat2_opath_tests()
184 { .name = "[beneath] absolute symlink target outside $root", in test_openat2_opath_tests()
197 { .name = "[beneath] tricky '..'-chained symlink outside $root", in test_openat2_opath_tests()
200 { .name = "[beneath] tricky absolute + '..'-chained symlink outside $root", in test_openat2_opath_tests()
215 { .name = "[in_root] absolute symlink to /root", in test_openat2_opath_tests()
227 { .name = "[in_root] relative symlink containing '..' above root", in test_openat2_opath_tests()
[all …]
/linux-6.12.1/fs/kernfs/
Dsymlink.c3 * fs/kernfs/symlink.c - kernfs symlink implementation
17 * kernfs_create_link - create a symlink
18 * @parent: directory to create the symlink in
19 * @name: name of the symlink
20 * @target: target node for the symlink to point to
45 kn->symlink.target_kn = target; in kernfs_create_link()
46 kernfs_get(target); /* ref owned by symlink */ in kernfs_create_link()
115 struct kernfs_node *target = kn->symlink.target_kn; in kernfs_getlink()
/linux-6.12.1/Documentation/devicetree/bindings/power/supply/
Dbq256xx.yaml19 - https://www.ti.com/lit/ds/symlink/bq25600.pdf
20 - https://www.ti.com/lit/ds/symlink/bq25601.pdf
21 - https://www.ti.com/lit/ds/symlink/bq25600d.pdf
22 - https://www.ti.com/lit/ds/symlink/bq25601d.pdf
23 - https://www.ti.com/lit/ds/symlink/bq25611d.pdf
24 - https://www.ti.com/lit/ds/symlink/bq25618.pdf
25 - https://www.ti.com/lit/ds/symlink/bq25619.pdf
/linux-6.12.1/fs/smb/client/
Dreparse.c56 * SMB distinguish between symlink to directory and symlink to file. in smb2_create_reparse_symlink()
57 * They cannot be exchanged (symlink of file type which points to in smb2_create_reparse_symlink()
59 * the symlink target could be a directory or not. When detection in smb2_create_reparse_symlink()
60 * fails then treat symlink as a file (non-directory) symlink. in smb2_create_reparse_symlink()
125 * First do some simple check. If the original Linux symlink target ends in detect_directory_symlink_target()
127 * sure symlink to the directory. in detect_directory_symlink_target()
144 "%s: cannot determinate if the symlink target path '%s' " in detect_directory_symlink_target()
145 "is directory or not, creating '%s' as file symlink\n", in detect_directory_symlink_target()
151 * If it was not detected as directory yet and the symlink is relative in detect_directory_symlink_target()
170 * Compose the resolved SMB symlink path from the SMB full path in detect_directory_symlink_target()
[all …]
Dlink.c23 * M-F Symlink Functions - Begin
149 /* it's not a symlink */ in couldbe_mf_symlink()
153 /* it's not a symlink */ in couldbe_mf_symlink()
201 char *symlink = NULL; in check_mf_symlink() local
204 /* it's not a symlink */ in check_mf_symlink()
220 if (bytes_read == 0) /* not a symlink */ in check_mf_symlink()
223 rc = parse_mf_symlink(buf, bytes_read, &link_len, &symlink); in check_mf_symlink()
225 /* it's not a symlink */ in check_mf_symlink()
233 /* it is a symlink */ in check_mf_symlink()
238 fattr->cf_symlink_target = symlink; in check_mf_symlink()
[all …]
/linux-6.12.1/fs/xfs/
Dxfs_symlink.c54 xfs_alert(mp, "%s: inode (%llu) bad symlink length (%lld)", in xfs_readlink()
134 * The symlink will fit into the inode data fork? in xfs_symlink()
166 * Allocate an inode for the symlink. in xfs_symlink()
197 * Create the directory entry for the symlink. in xfs_symlink()
205 * symlink transaction goes to disk before returning to in xfs_symlink()
251 * Free a symlink that has blocks associated with it.
255 * disk as a zero length symlink. The inode is on the unlinked list already, so
269 * We're freeing a symlink that has some in xfs_inactive_symlink_rmt()
322 * xfs_inactive_symlink - free a symlink
341 xfs_alert(mp, "%s: inode (0x%llx) bad symlink length (%d)", in xfs_inactive_symlink()
[all …]
/linux-6.12.1/fs/ext4/
Dsymlink.c3 * linux/fs/ext4/symlink.c
14 * linux/fs/minix/symlink.c
18 * ext4 symlink handling code
46 EXT4_ERROR_INODE(inode, "bad symlink."); in ext4_encrypted_get_link()
80 * Create a new inlined symlink is not supported, just provide a in ext4_get_link()
106 EXT4_ERROR_INODE(inode, "bad symlink."); in ext4_get_link()
/linux-6.12.1/Documentation/filesystems/
Dpath-lookup.rst786 permissions. Symlink handling requires a validated inode pointer too.
941 handling of symbolic links: the symlink stack, together with cache
947 The symlink stack
968 to concatenate them. As one symlink may easily refer to another,
976 If a symlink referred to itself either directly or through
977 intermediaries, then following the symlink can never complete
1004 lookup will never exceed that stack as, once the 40th symlink is
1027 sometimes include space for a symlink. The other common location is
1029 pathname in a symlink can be seen as the content of that symlink and
1034 construct the symlink content into that memory whenever it is needed.
[all …]
/linux-6.12.1/fs/udf/
Dsymlink.c3 * symlink.c
6 * Symlink handling routines for the OSTA-UDF(tm) filesystem.
44 * Symlink points to some place which should be agreed in udf_pc_to_char()
104 unsigned char *symlink; in udf_symlink_filler() local
116 symlink = iinfo->i_data + iinfo->i_lenEAttr; in udf_symlink_filler()
124 symlink = bh->b_data; in udf_symlink_filler()
127 err = udf_pc_to_char(inode->i_sb, symlink, inode->i_size, p, PAGE_SIZE); in udf_symlink_filler()
/linux-6.12.1/Documentation/hwmon/
Ducd9200.rst15 - http://focus.ti.com/lit/ds/symlink/ucd9220.pdf
16 - http://focus.ti.com/lit/ds/symlink/ucd9222.pdf
17 - http://focus.ti.com/lit/ds/symlink/ucd9224.pdf
18 - http://focus.ti.com/lit/ds/symlink/ucd9240.pdf
19 - http://focus.ti.com/lit/ds/symlink/ucd9244.pdf
20 - http://focus.ti.com/lit/ds/symlink/ucd9246.pdf
21 - http://focus.ti.com/lit/ds/symlink/ucd9248.pdf
Ducd9000.rst15 - http://focus.ti.com/lit/ds/symlink/ucd90120.pdf
16 - http://focus.ti.com/lit/ds/symlink/ucd90124.pdf
17 - http://focus.ti.com/lit/ds/symlink/ucd90160.pdf
18 - http://focus.ti.com/lit/ds/symlink/ucd90320.pdf
19 - http://focus.ti.com/lit/ds/symlink/ucd9090.pdf
20 - http://focus.ti.com/lit/ds/symlink/ucd90910.pdf
/linux-6.12.1/fs/xfs/scrub/
Dsymlink_repair.c49 * commits the new symlink target to the file being repaired.
52 /* Set us up to repair the symlink file. */
68 * completely new symlink file, plus twice as many blocks as we would in xrep_setup_symlink()
74 * constructed the replacement symlink and therefore do not know how in xrep_setup_symlink()
77 * symlink ILOCK) and cannot ask for more reservation. in xrep_setup_symlink()
159 * Try to salvage an inline symlink's contents. Returns the number of bytes
196 "acceptable length for a symlink target on XFS but will produce " \
232 * Change an empty target into a dummy target and clear the symlink in xrep_symlink_salvage()
323 /* Exchange the temporary symlink's data fork with the one being repaired. */
375 /* Reset the temp symlink target to dummy content. */ in xrep_symlink_reset_fork()
[all …]
/linux-6.12.1/drivers/usb/gadget/function/
Dg_zero.h44 * and create symlink/remove symlink.
59 * and create symlink/remove symlink.
/linux-6.12.1/drivers/iio/dac/
Dti-dac5571.c7 * https://www.ti.com/lit/ds/symlink/dac5571.pdf
8 * https://www.ti.com/lit/ds/symlink/dac6571.pdf
9 * https://www.ti.com/lit/ds/symlink/dac7571.pdf
10 * https://www.ti.com/lit/ds/symlink/dac5574.pdf
11 * https://www.ti.com/lit/ds/symlink/dac6574.pdf
12 * https://www.ti.com/lit/ds/symlink/dac7574.pdf
13 * https://www.ti.com/lit/ds/symlink/dac5573.pdf
14 * https://www.ti.com/lit/ds/symlink/dac6573.pdf
15 * https://www.ti.com/lit/ds/symlink/dac7573.pdf
16 * https://www.ti.com/lit/ds/symlink/dac081c081.pdf
[all …]
/linux-6.12.1/fs/squashfs/
Dsymlink.c8 * symlink.c
50 * Skip index bytes into symlink metadata. in squashfs_symlink_read_folio()
56 ERROR("Unable to read symlink [%llx:%x]\n", in squashfs_symlink_read_folio()
65 * Read length bytes from symlink metadata. Squashfs_read_metadata in squashfs_symlink_read_folio()
74 ERROR("Unable to read symlink [%llx:%x]\n", in squashfs_symlink_read_folio()
/linux-6.12.1/fs/nfs/
Dsymlink.c3 * linux/fs/nfs/symlink.c
9 * Jun 7 1999, cache symlink lookups in the page cache. -DaveM
11 * nfs symlink handling code
25 /* Symlink caching in the page cache is even more simplistic
/linux-6.12.1/Documentation/ABI/removed/
Do2cb1 What: /sys/o2cb symlink
5 Description: This is a symlink: /sys/o2cb to /sys/fs/o2cb. The symlink is
/linux-6.12.1/Documentation/devicetree/bindings/hwmon/
Dti,tmp401.yaml16 https://www.ti.com/lit/ds/symlink/tmp401.pdf
17 https://www.ti.com/lit/ds/symlink/tmp411.pdf
18 https://www.ti.com/lit/ds/symlink/tmp431.pdf
19 https://www.ti.com/lit/ds/symlink/tmp435.pdf
/linux-6.12.1/fs/xfs/libxfs/
Dxfs_symlink_remote.c64 * Checking of the symlink header is split into two parts. the verifier does
188 * As this symlink fits in an inode literal area, it must also fit in in xfs_symlink_local_to_remote()
204 * Verify the in-memory consistency of an inline symlink data fork. This
221 /* No negative sizes or overly long symlink targets. */ in xfs_symlink_shortform_verify()
235 /* Read a remote symlink target into the buffer. */
283 "symlink header does not match required off/len/owner (0x%x/0x%x,0x%llx)", in xfs_symlink_remote_read()
309 /* Write the symlink target into the inode. */
332 * If the symlink will fit into the inode, write it inline. in xfs_symlink_write_target()
385 /* Remove all the blocks from a symlink and invalidate buffers. */
/linux-6.12.1/fs/ocfs2/
Dsymlink.c2 * linux/cluster/ssi/cfs/symlink.c
25 * Jun 7 1999, cache symlink lookups in the page cache. -DaveM
29 * ocfs2 symlink handling code.
49 #include "symlink.h"
/linux-6.12.1/fs/ext2/
Dsymlink.c3 * linux/fs/ext2/symlink.c
14 * linux/fs/minix/symlink.c
18 * ext2 symlink handling code

12345678910>>...20