[PATCH v6] Translate debugfs.txt into Chinese and link it to the index.
From: Chucheng Luo
Date: Tue Apr 07 2020 - 05:19:39 EST
Translate Documentation/filesystems/debugfs.txt into Chinese.
Signed-off-by: Chucheng Luo <luochucheng@xxxxxxxx>
---
Changelog:
v6:
- keep each line less than 80 chars, but also keep each line full
- remove redundant '=' in caption and all other subheadings
- send the patch with 'charset=UTF-8'
---
.../zh_CN/filesystems/debugfs.rst | 248 ++++++++++++++++++
.../translations/zh_CN/filesystems/index.rst | 22 ++
Documentation/translations/zh_CN/index.rst | 2 +
3 files changed, 272 insertions(+)
create mode 100644 Documentation/translations/zh_CN/filesystems/debugfs.rst
create mode 100644 Documentation/translations/zh_CN/filesystems/index.rst
diff --git a/Documentation/translations/zh_CN/filesystems/debugfs.rst b/Documentation/translations/zh_CN/filesystems/debugfs.rst
new file mode 100644
index 000000000000..99930ad17251
--- /dev/null
+++ b/Documentation/translations/zh_CN/filesystems/debugfs.rst
@@ -0,0 +1,248 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+.. include:: ../disclaimer-zh_CN.rst
+
+:Original: :ref:`Documentation/filesystems/debugfs.txt <debugfs_index>`
+
+=======
+Debugfs
+=======
+
+èè
+::
+
+ äæççæèï çææ Chucheng Luo <luochucheng@xxxxxxxx>
+ äæççèèï çææ Chucheng Luo <luochucheng@xxxxxxxx>
+ äæçæèè: çææ Chucheng Luo <luochucheng@xxxxxxxx>
+
+
+
+çæææ2020 çææ <luochucheng@xxxxxxxx>
+
+
+Debugfsæåæååäååçæçéèåäæççåææã
+ä/procäåïprocåæäèçäæãääåsysfs,åæ
+äæçâæäæäääåâçèåãdebugfsææææèå,
+ååäååäåèéæçääæèçäääæãdebugfs
+æäççääèçäçåçABIæåãäçèäèïdebugfs
+ååæäçæåææääçæãäæ[1]åéæååäææ
+éäçåãåäædebugfsæåïäæåææéèèèèè,
+ååéäææåäåã
+
+
+Debugfséåäçääåäåè::
+
+ mount -t debugfs none /sys/kernel/debug
+
+ïæçæç/etc/fstabèïã
+debugfsæçåéèäåçrootçæèéãèææåæäæç
+èéïèäçâ uidâïâ gidâåâ modeâæèééã
+
+èææïdebugfs APIäæçGPLåèåååæåã
+
+äçdebugfsçäçååå<linux/debugfs.h>ã
+çåïéåæååèåääçåæäåäçdebugfsæä::
+
+ struct dentry *debugfs_create_dir(const char *name, struct dentry *parent);
+
+åææåïæèçååæåçççåäååääåänameç
+çåãåæparentåæäçïåäådebugfsæçåäååã
+ååçåæåæïèååæääæådentryçæäçæéã
+èdentryçæäçæéåçäåçåäååæäïäåæå
+ååæçååïãERR_PTRï-ERRORïèååèæåéãåæ
+èåERR_PTRï-ENODEVïïåèæåææåæædebugfsææ
+çæåäæåçïåääèåæéääèäçã
+
+ådebugfsçåäååæäçæéçæææ::
+
+ struct dentry *debugfs_create_file(const char *name, umode_t mode,
+ struct dentry *parent, void *data,
+ const struct file_operations *fops);
+
+åèéïnameæèååçæäçåçïmodeæèäèéæäå
+åæçæéïparentæååèäåæäççåïdataåååå
+äççinodeçæäçi_privateåæäïèfopsæäçæäæä
+åæïèäåæäåçæäæäçåäèäãèåïreadïï
+å/æwriteïïæäåæäïåäåäææéèåæååã
+åæçïèåååææåååæäçdentryæéïéèæèå
+ERR_PTRï-ERRORïïççäæædebugfsæèååäERR_PTR
+ï-ENODEVïã
+
+ååääååååçæäïåääçääåæäæ::
+
+ struct dentry *debugfs_create_file_size(const char *name, umode_t mode,
+ struct dentry *parent, void *data,
+ const struct file_operations *fops,
+ loff_t file_size);
+
+file_sizeæååæäååãåäåæèåæ
+debugfs_create_fileççåã
+
+åèåæåäïæåèèååååäçæäæä;
+åäääçåçæå,debugfsäçæääèååååæã
+åååäææåçæäåääçäääääéåå::
+
+ void debugfs_create_u8(const char *name, umode_t mode,
+ struct dentry *parent, u8 *value);
+ void debugfs_create_u16(const char *name, umode_t mode,
+ struct dentry *parent, u16 *value);
+ struct dentry *debugfs_create_u32(const char *name, umode_t mode,
+ struct dentry *parent, u32 *value);
+ void debugfs_create_u64(const char *name, umode_t mode,
+ struct dentry *parent, u64 *value);
+
+èäæäææèååååçååãåææäæääææ
+ååïåéææéèèçmodeåæäãèäæääçåä
+åèåèçïåæéèäçååèåïåääçääåæ
+æä::
+
+ void debugfs_create_x8(const char *name, umode_t mode,
+ struct dentry *parent, u8 *value);
+ void debugfs_create_x16(const char *name, umode_t mode,
+ struct dentry *parent, u16 *value);
+ void debugfs_create_x32(const char *name, umode_t mode,
+ struct dentry *parent, u32 *value);
+ void debugfs_create_x64(const char *name, umode_t mode,
+ struct dentry *parent, u64 *value);
+
+èäåèåæåååäåçéåååçååçæåææçã
+æäææçååäåçææäæäåçååïèæääæå
+ååæäåæãåèççææåäåääçääåæ::
+
+ void debugfs_create_size_t(const char *name, umode_t mode,
+ struct dentry *parent, size_t *value);
+
+äåææïæåæåååäädebugfsæäæèççåäsize_t
+çåéã
+
+åæåïäæååæçåéæååéçåæïååäåèå
+åååèåèçåä::
+
+ struct dentry *debugfs_create_ulong(const char *name, umode_t mode,
+ struct dentry *parent,
+ unsigned long *value);
+ void debugfs_create_xul(const char *name, umode_t mode,
+ struct dentry *parent, unsigned long *value);
+
+ååååäéèääæåæçådebugfsä::
+
+ struct dentry *debugfs_create_bool(const char *name, umode_t mode,
+ struct dentry *parent, bool *value);
+
+
+èåçææäåäçYïåäééåïæNïåèæèçåå
+çæåïååæåååæåååæ1æ0ãääåäèåå
+èåçã
+
+åæïatomic_tçåçåäåäæçådebugfsä::
+
+ void debugfs_create_atomic_t(const char *name, umode_t mode,
+ struct dentry *parent, atomic_t *value)
+
+èåææäåèåatomic_tåïååææäåèçatomic_tåã
+
+åääéææéèääçæäååæååäääæäèå
+ææå::
+
+ struct debugfs_blob_wrapper {
+ void *data;
+ unsigned long size;
+ };
+
+ struct dentry *debugfs_create_blob(const char *name, umode_t mode,
+ struct dentry *parent,
+ struct debugfs_blob_wrapper *blob);
+
+èåææäåèåçæéæådebugfs_blob_wrapperçæä
+çææãääéåäçâblobsâäääçèååèïéæï
+æååææççåææãèäåæåçäååäèåäæï
+äääåäçäææäääçèæåãèææïäç
+debugfs_create_blobïïåäååçæææäæåèçã
+
+åææèèåääååååïåååèçäçåäèäåï
+äæèæçèèäçååääåäçäãDebugfsæäää
+åæïääçäååäåååæäïåääæääåååå
+æåääéåæää::
+
+ struct debugfs_reg32 {
+ char *name;
+ unsigned long offset;
+ };
+
+ struct debugfs_regset32 {
+ struct debugfs_reg32 *regs;
+ int nregs;
+ void __iomem *base;
+ };
+
+ struct dentry *debugfs_create_regset32(const char *name, umode_t mode,
+ struct dentry *parent,
+ struct debugfs_regset32 *regset);
+
+ void debugfs_print_regs32(struct seq_file *s, struct debugfs_reg32 *regs,
+ int nregs, void __iomem *base, char *prefix);
+
+âbaseâåæåèä0ïäæåèéèäç__stringifyæå
+reg32æçïåéäæèåååååçïåïæååååå
+ååäçåèåçéã
+
+åæèådebugfsäèåu32æçïåääçääåæååæä::
+
+ void debugfs_create_u32_array(const char *name, umode_t mode,
+ struct dentry *parent,
+ u32 *array, u32 elements);
+
+âarrayâåææäææïèâelementsâåæäæçäåçç
+æéãææïæçåååïæçååææææã
+
+æääåææååäèåçåçseq_file::
+
+ struct dentry *debugfs_create_devm_seqfile(struct device *dev,
+ const char *name,
+ struct dentry *parent,
+ int (*read_fn)(struct seq_file *s,
+ void *data));
+
+âdevâåææäædebugfsæäçåçèåïåäâread_fnâæ
+ääåææéïèäåæåæåseq_fileååçæåèåèã
+
+èæääåäçéåçåçåæ::
+
+ struct dentry *debugfs_rename(struct dentry *old_dir,
+ struct dentry *old_dentry,
+ struct dentry *new_dir,
+ const char *new_name);
+
+ struct dentry *debugfs_create_symlink(const char *name,
+ struct dentry *parent,
+ const char *target);
+
+èçdebugfs_rename()åäçæçdebugfsæäéååïåèåæ
+åæçåã new_nameåæèçäåäèååïèååäold_dentry
+ïåäååææçäæãåääçdebugfs_create_symlinkïï
+ååçåéæã
+
+æædebugfsçæåéèèçäääæï
+debugfsääèåæéååäååçääçåãåæääæåå
+äæååédebugfsçåçæåäåèæåïçæåäéçåå
+éæéïäèåèççäçåãåæïæædebugfsçæ-èå
+æéäåäääæåæåççæ-åéåæååèçæååå
+åéåæååçæææäåçåãääæäåäéèääæ
+ååé::
+
+ void debugfs_remove(struct dentry *dentry);
+
+dentryååääNULLæéèåïåèçæåäï
+ääæääæäèåéã
+
+åääåïåæååèäçdebugfsæéèèåääååçæä
+dentryæéïääæåæææäéåäèæçæãäæïçå
+debugfsçæèèçääåæéåæéäåååçæä::
+
+ void debugfs_remove_recursive(struct dentry *dentry);
+
+åæåååéåçåçdentryäéçääåæïåèçåäç
+æäåæçæåäèåéã
+
+æéï
+[1] http://lwn.net/Articles/309298/
diff --git a/Documentation/translations/zh_CN/filesystems/index.rst b/Documentation/translations/zh_CN/filesystems/index.rst
new file mode 100644
index 000000000000..b2e742fb3b93
--- /dev/null
+++ b/Documentation/translations/zh_CN/filesystems/index.rst
@@ -0,0 +1,22 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+======================
+Linux åæäçæäçç
+======================
+
+èääåæçæååæäååäæäåäLinux èææäçç
+(VFS)ååäåäçåæäæãäåVFSääççæäççã
+çåäæïæäæäääääæã
+
+
+
+
+æäçç
+========
+
+åäæäççåççææ.
+
+.. toctree::
+ :maxdepth: 2
+
+ debugfs
diff --git a/Documentation/translations/zh_CN/index.rst b/Documentation/translations/zh_CN/index.rst
index d3165535ec9e..770f886d081c 100644
--- a/Documentation/translations/zh_CN/index.rst
+++ b/Documentation/translations/zh_CN/index.rst
@@ -1,3 +1,4 @@
+.. SPDX-License-Identifier: GPL-2.0
.. raw:: latex
\renewcommand\thesection*
@@ -14,6 +15,7 @@
:maxdepth: 2
process/index
+ filesystems/index
çååèæ
----------
--
2.17.1