Linux 下串列埠驅動標頭檔案之tty flip h

2021-05-22 02:28:01 字數 922 閱讀 8689

linux-2.6.29/include/linux下tty_flip.h

#ifndef _linux_tty_flip_h

#define _linux_tty_flip_h

extern int tty_buffer_request_room(struct tty_struct *tty, size_t size);

extern int tty_insert_flip_string(struct tty_struct *tty, const unsigned char *chars, size_t size);

extern int tty_insert_flip_string_flags(struct tty_struct *tty, const unsigned char *chars, const char *flags, size_t size);

extern int tty_prepare_flip_string(struct tty_struct *tty, unsigned char **chars, size_t size);

extern int tty_prepare_flip_string_flags(struct tty_struct *tty, unsigned char **chars, char **flags, size_t size);

void tty_schedule_flip(struct tty_struct *tty);

static inline int tty_insert_flip_char(struct tty_struct *tty,

unsigned char ch, char flag)

return tty_insert_flip_string_flags(tty, &ch, &flag, 1);}

#endif /* _linux_tty_flip_h */

linux驅動標頭檔案說明

驅動程式 include 是在linux 2.6.29 include linux下面尋找原始檔。include 是在linux 2.6.29 arch arm include asm下面尋找原始檔。include 是在linux 2.6.29 arch arm mach s3c2410 inclu...

linux驅動標頭檔案說明

include 是在linux 2.6.29 include linux下面尋找原始檔。include 是在linux 2.6.29 arch arm include asm下面尋找原始檔。include 是在linux 2.6.29 arch arm mach s3c2410 include ma...

Linux驅動標頭檔案說明

include 是在linux 2.6.29 include linux下面尋找原始檔。include 是在linux 2.6.29 arch arm include asm下面尋找原始檔。include 是在linux 2.6.29 arch arm mach s3c2410 include ma...