Vietnamese (machine translation)

Lưu ý

Mục đích của file này là để độc giả tiếng Việt có thể đọc và hiểu tài liệu nhân kernel dễ dàng hơn, không phải để tạo ra một nhánh tài liệu riêng. Nếu bạn có bất kỳ nhận xét hoặc cập nhật nào cho file này, vui lòng thử cập nhật file tiếng Anh gốc trước. Nếu bạn thấy có sự khác biệt giữa bản dịch và bản gốc, hoặc có vấn đề về bản dịch, vui lòng gửi góp ý hoặc patch cho người dịch của file này, hoặc nhờ người bảo trì và người review tài liệu tiếng Việt giúp đỡ.

Bản gốc:

Documentation features parser module

Người dịch:

Google Translate (machine translation)

Phiên bản gốc:

8541d8f725c6

Cảnh báo

Tài liệu này được dịch tự động bằng máy và chưa được review bởi người dịch. Nội dung có thể không chính xác hoặc khó hiểu ở một số chỗ. Khi có sự khác biệt với bản gốc, bản gốc luôn là chuẩn. Bản dịch chất lượng cao (được review) được đặt trong thư mục vi_VN/.

Mô-đun phân tích cú pháp tính năng tài liệu

Library to parse the Linux Feature files and produce a ReST book.

class lib.python.feat.parse_features.ParseFeature(prefix, debug=0, enable_fname=False)

Bases: object

Parses Documentation/features, allowing to generate ReST documentation from it.

emit(msg='', end='\n')

Helper function to append a new message for feature output.

h_arch = 'Architecture'

architecture header string.

h_description = 'Description'

description header string.

h_kconfig = 'Kconfig'

Kernel config header string.

h_name = 'Feature'

feature header string.

h_status = 'Status'

status header string.

h_subsys = 'Subsystem'

subsystem header string.

list_arch_features(arch, feat)

Print a matrix of kernel feature support for the chosen architecture.

matrix_lines(desc_size, max_size_status, header)

Helper function to split element tables at the output matrix.

output_arch_table(arch, feat=None)

Output feature(s) for a given architecture.

output_feature(feat)

Output a feature on all architectures.

output_matrix()

Generates a set of tables, groped by subsystem, containing what’s the feature state on each architecture.

parse()

Parses all arch-support.txt feature files inside self.prefix.

parse_error(fname, ln, msg, data=None)

Displays an error message, printing file name and line.

parse_feat_file(fname)

Parses a single arch-support.txt feature file.

status_map = {'N/A': 2, 'TODO': 1, 'ok': 0}

Sort order for status. Others will be mapped at the end.